As in any other programming language, JavaScript also has Primitive data types and non-primitive data types. In case you didn't know primitive data types are predefined data types which comes with the language. Non-primitive are data types which are defined by the programmer.
Data types in JavaScript
- Primary data types
- Number
- String
- Boolean
- Composite data types
- Object
- Function
- Special data types
- null
- undefined : variable is declared but a value is not assigned to that. null means it is assigned no value. (Difference between null and undefined)
Array
Array is a high-level, list like object. Array prototype includes methods to perform operation on it.
Array. forEach
Array.prototype.map()
Creates a new array after manipulating the array elements from the callback function which is passed to map.
There are lot of other methods available for use in Array.prototype.
Array.prototype.map()
Creates a new array after manipulating the array elements from the callback function which is passed to map.
There are lot of other methods available for use in Array.prototype.
instanceof operator
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/instanceofhttp://stackoverflow.com/questions/2449254/what-is-the-instanceof-operator-in-javascript
Resources
0 comments:
Post a Comment