04: Variables

A variable is a way to give some piece of data in your program a name. This bit gets more complex as you code, but in general you use variables to give data names. The computer really does not care what name you use, but other people care very much. There are many ways to create variables in JavaScript, but we will start with the most recent and easiest to use way. Other ways seem to cause lots of problems and bugs or are difficult to explain now.

With this exercise I recommend you watch the video first as I give a more interactive explanation of what you are doing in the code. Keep in mind that you are not really expected to understand what a variable is if you're a beginner. You will, however, get plenty of practice with this concept.

The Code

{{ ork.js() }}

80% Discount for Alpha 1

Register today for the early access release and get an 80% discount on the final release price. You'll get true lessons in true modules right now, and early access to content as it's released.

Still Not Sure? Check out more curriculum!