Data types in JavaScript
Inspired from an exercise in Hackerrank.com, I found the opportunity to present you the data types that JavaScript defines, which are the following six:
- undefined
- null
- number
- string
- boolean
- object
Arrays and functions are plain objects in JavaScript and they both belong to the object data type.
Read the complete article