December 2017
Intermediate to advanced
271 pages
7h 5m
English
In this summary we try to take all important points of the classical JavaScript summary30 by Douglas Crockford31 into consideration.
JavaScript has three primitive datatypes: string, number and boolean, and we can test if a variable v holds a value of such a type with the help of the JS operator typeof as, for instance, in typeof v === "number".
There are five reference types: Object, Array, Function, Date and RegExp. Arrays, functions, dates and regular expressions are special types of objects, but, conceptually, dates and regular expressions are primitive data values, and happen to be implemented in the form of wrapper objects.
The types of variables, array ...
Read now
Unlock full access