In software development, a type refers to a property we apply to a language construct to describe what the data is about. In this description, a language construct refers to something like an expression or variable. We’ve already discussed how JavaScript is both weakly and dynamically typed, which means we do not have to explicitly declare types on language constructs. That does not, however, make types in JavaScript any more straightforward than other languages, and in some ways, it makes things more complicated! Types are where some ...
7. Types
Get How JavaScript Works: Master the Basics of JavaScript and Modern Web App Development now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.