Data of these types are stored and manipulate easily by using variables.
How to creates variables:
When we don’t assign any value to variable, It will give you undefined.
If we don’t want to store any data in our variable then we can assign a variable with an empty value called as ‘null’.
- Operators are categorized into unary, binary, and ternary based on the number of operands on which they operate in an expression.
Example of typeOf:
console.log("string: ","Hello" + " world!"); // string: Hello world!
console.log("10**3", 10**3); // output 1000