That's the whole idea: a variable is a labelled box the program uses to remember. let total = 2; builds the box, sticks on the label, puts 2 inside. Later, total = 3; swaps the contents, same box, new value.
JavaScript has a second keyword, const, for values that must never change. Sam's weekend project is an order screen for The Beanline, her local café. The editor below is live, go and build her some memory.