File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change 22
33// There is only 3 types of variables in javascript
44
5- let a = "Swapnil" ; // New type introduced in ES6. Value of let can change any time.
5+ let userNickname = "Swapnil" ; // New type introduced in ES6. Value of let can change any time.
66
7- a = "Swap76" ;
7+ userNickname = "Swap76" ;
88
9- const pi = 3.14 ; // New type introduced in ES6. Value of pi now cannot be changed as this is defined as const.
9+ const PI = 3.14 ; // New type introduced in ES6. Value of pi now cannot be changed as this is defined as const.
1010
11- var b = 26 ; // This is Deprecated as this creates many problems in future.
11+ var day26 = 26 ; // This is Deprecated as this creates many problems in future.
12+
13+
14+
15+ //Tips: *use significatives variables names, example:
16+ // let a = "User's name" for let userNickName = "User's name"
17+ //*CammelCase for a better understaning, JS has case sensitive.
18+ //*Variables names must begin with a letter.
19+ //*write constants with Upper case.
You can’t perform that action at this time.
0 commit comments