4.3.1. Declaring and Initializing Variables With let¶
/*It is possible to declare and initialize a variable with a single line
of code. This is the most common way to create a variable.*/
let programmingLanguage = "JavaScript";
4.3.1. Declaring and Initializing Variables With let¶
/*It is possible to declare and initialize a variable with a single line
of code. This is the most common way to create a variable.*/
let programmingLanguage = "JavaScript";
4.3.1. Declaring and Initializing Variables With let¶
/*To create a variable in JavaScript, create a new name for the variable
and precede it with the keyword let:*/
let programmingLanguage;
/*Once a variable has been declared, it may be given a value using an
assignment statement, which uses = to give a variable a value.*/
let programmingLanguage;
programmingLanguage = "JavaScript";
/*The act of assigning a variable a value for the first time is called
initialization.*/
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us