|String||represents sequence of characters e.g. “upsilonwin”|
|Number||represents numeric values e.g. 10|
|Boolean||represents boolean value either false or true|
|Undefined||represents undefined value|
|Null||represents null i.e. no value at all|
Note – Symbol (new in ECMAScript 6, is treated as datatype )
The non-primitive data types are as follows:
|Object||represents instance through which we can access members|
|Array||represents group of similar values|
|RegExp||represents regular expression|
- What are undeclared and undefined variables?
- Explain the difference between “==” and “===”?
- What is the function of delete operator?
- What is the difference between .call() and .apply()?
- What is lexical scope?
- What is difference between let, var and const ?
Happy Learning 🙂