Variable Mutation
Introduction to variable mutation and how variables can be reassigned to different values in JavaScript.
We'll cover the following...
Mutation
Variable mutation is reassigning a variable to another value. This is simply done with the assignment operator =
.
The above slides show how assigning a variable into another value will reassign it to a new value while losing the link to the previous value.
NOTE: Lost values cannot be retrieved once you reach a point in the program where ...