JavaScript is typeless language. The variables doesn't have type , but their values do.
DATA TYPES
Annotations:
JavaScript have 6 data types , 5 primitive types and only 1 reference type.
primitive
types
number
string
null
undefined
boolean
Object
Annotations:
Object is the only one reference type. It means that it is copied by reference. We pass a reference as an argument to a function ,like pointers in c/c++.
Set of properties. The fields and the methods are properties.
predefined objects
Math
Number
String
document
window
arguments
JSON
Annotations:
JavaScript Object Notation.
It is data format used in JS.
ASSOCIATIVE
ARRAYS
Annotations:
Every object in JS is associative array. It means that its properties can be accessed that way = obj.["property"]
Associative array doesn't have methods length , indexOf ,etc..