-
Notifications
You must be signed in to change notification settings - Fork 0
/
variable.js
26 lines (18 loc) · 857 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
const accountId = 43253
let accountemail = "[email protected]"
var accountpassword = "wjasdsasjfas44"
accountcity = "bhadohi"
//const is not changeable
// accountId = 7388 not allowed
// accountemail = "[email protected]" let is changeable
accountpassword= 4564564
accountcity="jaunpur"
let accountstate;
// console.log(accountpassword)
// console.log(accountcity)
// console.table([accountId,accountemail,accountpassword,accountcity])
console.log(accountstate);
/* prefer not to use var always use let or const because of issue in block scope and functional scope */
// we can not use program reserved keywords as a variable
// we are not need to assign again identifier(let,var,const) if we are doing change in variable
// ex. let name="abhi"; let name="ashish" instead of this we can write direct name="ashish" for change name variable