© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
J. SimpsonHow JavaScript Works https://doi.org/10.1007/978-1-4842-9738-4_7

7. Types

Jonathon Simpson1  
(1)
Belfast, Antrim, UK
 

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 ...

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.