Welcome to your comprehensive JavaScript Data Types Cheat Sheet! Understanding JavaScript data types is a cornerstone of effective coding in this versatile language. Let's dive in!

JavaScript, like many other languages, has several primitive data types that are immutable. These include strings, numbers, booleans, null, undefined, and symbols. Additionally, JavaScript also supports objects as first-class citizens, which are non-primitive data types.

Primitive Data Types
Primitive data types are values that represent the most basic kind of data in JavaScript. They are immutable, meaning they cannot be changed once they are created.

There are six primitive data types in JavaScript: string, number, boolean, null, undefined, and symbol. Let's delve into each one:
String

Strings in JavaScript are sequences of characters enclosed in quotes. They can be defined with single, double, or back-tick quotes.
Examples include: 'Hello', " World", and `Nice to meet you`.
Number

Numbers in JavaScript are numeric values. They can be integers, floating-point values, or even special numeric values like Infinity or NaN (Not a Number).
Examples include: 42, 3.14, Infinity, and NaN.
Boolean

Boolean data type represents the truth values: true and false. These are useful for conditions in control structures like if-else statements.
Examples include: true, false.




















Null and Undefined
Null and undefined are special values that represent nothing. Undefined means a variable has been declared but has not been assigned a value. Null means a variable has no value or no object.
Examples include: undefined, null.
Symbol
Symbol is a unique and immutable primitive value that is used as the key of an Object property. It is often used in situations where you want to guarantee a unique key for an object property, like when customizing built-in objects.
Example: Symbol('description').
Object Data Type
Objects are non-primitive data types in JavaScript. They are used to represent real-world entities or concepts and can contain properties (key-value pairs) and methods (functions).
Objects are dynamic and mutable, meaning their properties can be added, removed, or changed after creation.
Creating Objects
Objects can be created using object literals, constructor functions, or classes. Here's an example of an object literal:
const person = {firstName: 'John', lastName: 'Doe', age: 30};
Accessing and Manipulating Properties
You can access and manipulate object properties using the dot notation (person.firstName) or bracket notation (person['firstName']). These properties can be added, removed, or modified after creation.
Example: person['firstName'] = 'Jane';
JavaScript data types are robust and versatile, providing a strong foundation for any developer to build upon. Now that you have this cheat sheet, you're well-equipped to tackle any JavaScript data type challenge!