Zusammenfassung der Ressource
JavaScript
Anmerkungen:
- JavaScript is typeless language. The variables doesn't have type , but their values do.
- DATA TYPES
Anmerkungen:
- JavaScript have 6 data types , 5 primitive types and only 1 reference type.
- primitive
types
- number
- string
- null
- undefined
- boolean
- Object
Anmerkungen:
- 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
Anmerkungen:
- JavaScript Object Notation.
It is data format used in JS.
- ASSOCIATIVE
ARRAYS
Anmerkungen:
- 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..