JavaScript Data Types
A value in JavaScript is always of a certain type. For example, a string or a number.
There are eight basic data types in JavaScript. Here, we’ll cover them in general and in the next chapters we’ll
talk about each of them in detail.
JavaScript Data Types |
Number |
Big Integer |
String |
Boolean
Null-Value |
Undefined-Value |
Objects and
Symbols |
Type Of |
Summary
let name = "Ilya";
// the expression is a number 1
alert( `hello ${1}` ); // hello 1
// the expression is a string "name"
alert( `hello ${"name"}` ); // hello name
// the expression is a variable, embed it
alert( `hello ${name}` ); // hello Ilya
w3 JavaScript Types |
Programiz JavaScript Data Types |
JavaScript Primitives
MDN JavaScript Primitives = Data Types |
Wiki Primitive_data_type
- JavaScript Data Types
- JavaScript String
- JavaScript Number
- JavaScript BigInt
- JavaScript Boolean
- JavaScript undefined
- JavaScript null
- JavaScript Symbol
- JavaScript Object
- JavaScript Type
- JavaScript typeof
Dmitri Undefined in JavaScript