Boolean: Used for logical values. There are only two possible values:
nullis a special keyword that represents a null value. It is often used to indicate that a variable or object does not have a value or reference. For example,
let x = null;creates a variable
xwith a value of null.
undefinedis a special keyword that represents a value that has not been assigned. For example,
let x;creates a variable
xwith a value of undefined.
Symbol()function. For example,
const mySymbol = Symbol();creates a symbol
mySymbolwith a unique value.
Array: Arrays are used to store ordered collections of data. They are created using square brackets  and can contain any type of data, including other arrays and objects. Arrays are zero-indexed, meaning that the first item in an array has an index of 0.
Function: Functions are used to store a block of code that can be executed when called. They are created using the function keyword and can have parameters and return values. Functions can be assigned to variables, passed as arguments to other functions, and returned as values from functions.
Map: The Map object is used to store collections of key-value pairs. It is similar to an object, but with some differences in behavior and syntax. Maps can use any value as a key, including objects and functions, and they maintain the order of their entries.
Set: The Set object is used to store collections of unique values. It is similar to an array, but with the added constraint that each value can only appear once in the set. Sets can be used to efficiently check for the presence of a value in a collection, and they provide methods for performing set operations such as union, intersection, and difference.
click here to go back