Year: 2024

JavaScript typeof

In JavaScript there are 5 different data types that can contain values: There are 6 types of objects: And 2 data types that cannot contain values: JavaScript typeof ============== typeof “John” // Returns “string” typeof 3.14 // Returns “number” typeof NaN // Returns “number” typeof false // Returns “boolean”

Back To Top