3.9 Summary
In this chapter, you learned about the most important programming basics for JavaScript. Let's briefly summarize the most important points:
-
Variables can be defined in JavaScript using the keywords var and (since ES2015) let. If you have a runtime environment that supports ES2015, you should get into the habit of always defining variables with let.
-
You define constants in JavaScript using the const keyword.
-
Even though JavaScript is not a strictly typed programming language, there are still different data types:
-
The primitive standard data types for numbers, strings and Boolean values, and the special data types undefined and null as well as symbols
-
The reference data types
-
Template strings, a powerful tool for working ...
-
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access