4 3 1 declaring and initializing variables with let c2 b6

Solutions on MaxInterview for 4 3 1 declaring and initializing variables with let c2 b6 by the best coders in the world

showing results for - "4 3 1 declaring and initializing variables with let c2 b6"
Leon
29 Aug 2019
1/*To create a variable in JavaScript, create a new name for the variable 
2and precede it with the keyword let:*/
3
4let programmingLanguage;
5
6/*Once a variable has been declared, it may be given a value using an 
7assignment statement, which uses = to give a variable a value.*/
8
9let programmingLanguage;
10programmingLanguage = "JavaScript";
11
12/*The act of assigning a variable a value for the first time is called 
13initialization.*/
Perrine
06 Mar 2018
1/*It is possible to declare and initialize a variable with a single line 
2of code. This is the most common way to create a variable.*/
3
4let programmingLanguage = "JavaScript";
5