4 4 1 creating constants with const c2 b6

Solutions on MaxInterview for 4 4 1 creating constants with const c2 b6 by the best coders in the world

showing results for - "4 4 1 creating constants with const c2 b6"
Luisa
31 Apr 2017
1/*One of the key features of variables that we have discussed so far 
2is their ability to change value. We can create a variable with one 
3value, and then reassign it to another value.*/
4
5let programmingLanguage = "JavaScript";
6programmingLanguage = "Python";
7
8/*We might store the name of our application in a variable so that it 
9can be referenced anywhere we want to display the application name.*/
10
11let appName = "Get It Done!";
12
13/*Using const rather than let to create a variable ensures that the 
14value of the declared variable cannot be changed.*/
15
16const appName = "Get It Done!";
17
18/*Such an unchangeable variable is known as a constant, since its value 
19is just that.*/