×
Create a new article
Write your page title here:
We currently have 240 articles on Open Eggbert. Type your article name above or click on one of the titles below and start writing!



Open Eggbert
240Articles

JavaScript: Difference between revisions

No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
JavaScript is a [[programming language]] designed by Brendan Eich.
JavaScript is a [[programming language]] designed by Brendan Eich.
== Type system ==
JavaScript has '''seven primitive data types''': <code>string</code>, <code>number</code>, <code>bigint</code>, <code>boolean</code>, <code>undefined</code>, <code>symbol</code>, and <code>null</code>.
In addition to these primitives, JavaScript also includes the '''Object type''', which is used to represent more complex data structures and behaviors.
{| class="wikitable"
|+ Data Type Overview
|-
! # !! Data Type !! Description
|-
| 1 || Boolean || A data type with two possible values: true and false.
|-
| 2 || String || A sequence of characters, where even a single character is considered a string.
|-
| 3 || Number || Represents values of type double according to the IEEE 754 standard. The range of integers is limited by the maximum value of 253-1 (due to the width of the mantissa, though the reality is slightly more complex, and the same applies to the negative boundary).
|-
| 4 || Bigint || A special type for integer numeric values used when storing values larger than 253-1.
|-
| 5 || Null || A type with a single value: null.
|-
| 6 || Undefined || A JavaScript specialty (and a headache), representing an unassigned value (note: different from `null`).
|-
| 7 || Symbol || A unique identifier.
|-
| 8 || Object || Represents objects (it may seem odd at first, but functions, for example, are also considered objects).
|}


== External links ==
== External links ==
https://mashable.com/archive/javascript
https://mashable.com/archive/javascript
[[Category:Programming languages]]
[[Category:Programming languages]]
[[Category:Obsolete]]

Latest revision as of 15:23, 23 March 2025

JavaScript is a programming language designed by Brendan Eich.

Type system

JavaScript has seven primitive data types: string, number, bigint, boolean, undefined, symbol, and null.

In addition to these primitives, JavaScript also includes the Object type, which is used to represent more complex data structures and behaviors.

Data Type Overview
# Data Type Description
1 Boolean A data type with two possible values: true and false.
2 String A sequence of characters, where even a single character is considered a string.
3 Number Represents values of type double according to the IEEE 754 standard. The range of integers is limited by the maximum value of 253-1 (due to the width of the mantissa, though the reality is slightly more complex, and the same applies to the negative boundary).
4 Bigint A special type for integer numeric values used when storing values larger than 253-1.
5 Null A type with a single value: null.
6 Undefined A JavaScript specialty (and a headache), representing an unassigned value (note: different from `null`).
7 Symbol A unique identifier.
8 Object Represents objects (it may seem odd at first, but functions, for example, are also considered objects).

External links

https://mashable.com/archive/javascript