Objectscan store a collection of data types, which are then called
- Each property has a
valuecan be of
any data type.
- If a
valueis a functon, its called as a
Equality in Objects
=== only tests if both operands are same objects.
Objects that store values in order.
function keyword to define a function.
- You may provide a name, if not, its called an
- Primatives data types passed in the function are passed by value but Objects are passed by reference.
Functions( Both named or anonymous) can be assigned to a variable.