Question: what is the difference between variable declaration and variable assignment?
Answer: Difference between Declaration, Initialization and Assignment. ... Initialization: When you declare a variable it is automatically initialized, which means memory is allocated for the variable by the JavaScript engine. Assignment: This is when a specific value is assigned to the variable.