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() }}

Learn JavaScript Today

Register today for the Beginner Basics course and get the new releases by just paying the difference. There's also special discounts for existing customers when new courses are released.


Still Not Sure? Check out more curriculum!