- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path07_data_type.js
More file actions
Latest commit
25 lines (24 loc) · 559 Bytes
/
Copy path07_data_type.js
File metadata and controls
25 lines (24 loc) · 559 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* data type on js totaly is 7
Primitive - string, number,bootlean, null, undefined,
symbol,
Object - arrays, functions, objects
typeof - operator (typeof variable) (typeof value)
String
*/
// string
letname='dncode';
// number
constamount=1000;
// boolean
constbooleanValue=false;
// null
constdata=null;
// undefined
leturlink;
constempty=0;
console.log(typeofname);
console.log(typeofamount);
console.log(typeofbooleanValue);
console.log(typeofdata);/*null will result object*/
console.log(typeofurlink);
console.log(typeofempty);