Values, Variables, and Types
Work with primitive values, objects, const, let, and explicit conversions.
Lesson introduction
Every JavaScript value has a type. Primitive values are copied by value, while objects are accessed through references. Use const by default for bindings and let only when the binding must point to a different value.
Where this fits
This lesson builds one part of the path from language fundamentals to complete browser applications.
What you will build
Convert a form value to a finite number before adding it to a total.
You will first study the underlying rule, then trace worked code, repair a mistake, and create an independent solution.