December 2019
Beginner
464 pages
10h 31m
English
In This Chapter
• Learn how to use values to store data
• Organize your code with variables
• Get a brief look at variable naming conventions
In JavaScript, every piece of data that we provide or use is considered to contain a value. In the example we saw from our introduction, the words hello, world! might just be some words that we pass in to the alert function:
alert("hello, world!");
To JavaScript, these words have a specific representation under the covers. They are considered values. We may not have thought much about that when we were typing those words in, but when we are in JavaScript-country, every piece of data you touch is considered a value.
Now, why is knowing this important? It is important because ...