data type in javascript

 primitive -> number string, undefined,boolean,null,bigint,symbol,

Non-Primitive (Reference) Data Types:-> array and object


var sym = Symbol("Hello")

console.log(typeof(sym));

console.log(sym);


JavaScript has 8 Datatypes

1. String
2. Number
3. Bigint
4. Boolean
5. Undefined
6. Null
7. Symbol
8. Object

The Object Datatype

The object data type can contain:

1. An object
2. An array
3. A date

No comments:

Post a Comment

Event listening in react

 How we can listen to som eevents some envents fire like click or automatically user enters into input button , that is event on word type i...