-
Notifications
You must be signed in to change notification settings - Fork 0
Objects
Marie-Louise edited this page Oct 9, 2018
·
8 revisions
In JavaScript, and object can be described as standalone entity with properties and type.
The values in JavaScript can be divided into two categories:
Primitive
- Numbers
- Booleans
- Strings
- Null
- Undefined
Objects
- Math
- Date
- JSON
- Window
- Document
- objects that you create
- arrays
- functions
on occasions the following can be objects:
- Numbers
- Booleans
- Strings
JavaScript objects can be thought of as simple collections of name-value pairs. As such, they are similar to:
- Dictionaries in Python.
- Hashes in Perl and Ruby.
- Hash tables in C and C++.
- HashMaps in Java.
- Associative arrays in PHP.