An overview of Javascript fundementals
JavaScript variables are containers for storing data values.
The let
keyword is used to define a variable that can be reassigned, and the
const
keyword to define a variable that cannot be reassigned.
All JavaScript variables must be identified with unique names.
Identifiers can be short names (like x and y) or more descriptive names (age, sum, totalVolume).
let greeting = "Hello"; //'let' means the variable can be reassigned. This a variable of a string datatype const question = "How are you"; //'const' means the variable cannot be reassigned let num = 7; //this is a variable of a number datatype
Follow the instructions below by filling in the missing spaces in the code.
//1 let = ""; //2 let = ; try Again!