September 2017
Beginner
666 pages
11h 35m
English
In the last chapter, we introduced JavaScript, then set up a programming environment. We even got our hands dirty with a few JavaScript programs. In this chapter, we’ll delve further and learn how JavaScript works, as well as write some more programs.
This chapter will cover the following topics:
The importance of well-commented code
JavaScript grammar ― expressions, statements, semicolons and whitespace
Primitive data types
Strings ― string literals, string properties and methods
Declaring and assigning constants and variables
Numbers ― decimal, hexadecimal, octal, binary and exponent form, Infinity, and NaN
Arithmetic operations such as +, -, *, /, and %
Undefined and null
Booleans ― truthy and falsy ...
Read now
Unlock full access