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

How to host application on server new way

 copy the htacess from public to root copy the server.php from public to root but rename to index.php htacess <IfModule mod_rewrite.c>...