June 2025
Beginner
817 pages
31h 30m
English
As you already know, unlike other languages such as C++ or Java, you don’t have to specify a data type when declaring variables because this is determined at runtime in JavaScript based on the value that has been passed.
JavaScript defines multiple data types. The primitive types are string, number, boolean, and symbol, and the special types include undefined and null. In addition to the primitive data types, JavaScript also has the composite data type object for objects.
You can determine the type of a variable using the typeof operator. Possible return values are string, number, boolean, object, function, symbol, and undefined.
In JavaScript, there’s no difference ...
Read now
Unlock full access