Explore tens of thousands of sets crafted by our community.
JavaScript Data Types
8
Flashcards
0/8
Number
A double-precision 64-bit binary format IEEE 754 value (which includes integers). Example: var count = 42;
Symbol
A unique and immutable primitive value that can be used as the key of an Object property. Example: var sym = Symbol('description');
String
A sequence of characters used to represent text. Example: var greetings = 'Hello, World!';
Null
A special data type that represents a 'no-value' or a non-existent object. Example: var empty = null;
Undefined
Indicates that a variable has been declared but has not yet been assigned a value. Example: var item;
BigInt
An integral numeric type that can represent numbers beyond the safe integer limit for Numbers. Example: var largeNumber = BigInt(9007199254740991);
Boolean
A logical entity that can have only two values: true or false. Example: var isActive = true;
Object
A collection of properties, where each property is defined as a key-value pair. Example: var person = {firstName: 'John', lastName: 'Doe'};
© Hypatia.Tech. 2024 All rights reserved.