-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsecond.js
More file actions
45 lines (31 loc) · 676 Bytes
/
second.js
File metadata and controls
45 lines (31 loc) · 676 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// DataTypes IN Javascript
//1)Number
let age=15;
console.log("The value of age is : ",age);
console.log(typeof age)
//2)String
let name="Ganesh ghode"
console.log("The name is : ",name)
console.log(typeof name)
//3)Symbol
let my=Symbol("hello")
console.log(my)
var id = Symbol ( "id" ) ;
console.log(id)
let ss=[id]
console.log("the symbol is: ", ss)
// let user = { name : "John" , [ id ] : 123 // not "id": 123 } ;
//4)Undefined
let state1;
console.log(state1)
//5)Null
let state=null;
console.log(state)
console.log(typeof state)
//6)BigInt
/*not used for many times */
//7)Boolean
let GameOn=true;
let Gameof=false;
console.log(GameOn)
console.log(Gameof)