3 Language Core
This chapter provides an introduction to the JavaScript language core. You will learn how to store individual values in variables and perform calculations, control the flow of a program using branches and repetitions, and structure the source code into reusable building blocks.
To learn a programming language, you need to learn the syntax and grammar, just like when you learn a "real" language like Italian, Chinese, or Latin. The syntax determines the words that can be used in the given language, and the grammar defines the rules according to which these words can be arranged. We have deliberately kept the source code examples in this chapter simple so that you can follow these examples easily and are well prepared for the later ...
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