-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariable.js
38 lines (24 loc) · 849 Bytes
/
variable.js
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
const account_Id = 144553
let account_email= "[email protected]"
var account_pasword= "12345"
account_city= "sehore"
let account_state; //ese undifine variable kahte he
// account_Id=2
account_email="[email protected]"
account_pasword="80976"
account_city="bhopal"
console.log(account_Id)
console.table([account_Id,account_email,account_pasword,account_city,account_state])
// run karne ke liye node ke bad me file ke name
// js me var ka use nahi hota he
// esme let or const dono variable ka use hota he bas
let score = null
console.log(typeof score) //o/p = object
console.log(typeof (score))//o/p = object
// typeof function ka use variable ke type ko pata karna hota he
let valueInNumber= Number(score)
console.log(typeof score)
// 33==> "33" eska type string hi aata he
// "33abc"==> Nan
// True==> 1;
// False==>0