Posts tagged Variable
Guide to JavaScript Variables
A variable is a way to store information so that you can later use and manipulate it. For example, imagine a JavaScript-based pinball game where the goal is to get the highest score. When the player first starts the game, their score will be zero, but as they hit targets with the pinball, the score will get bigger. In this case, the score is a variable since it starts at 0 but increases as the game goes on.
