- Object Hierarchy and Inheritance in JavaScript
- Understanding JavaScript Inheritance
- OOP in JS
- Simple Inheritance with JavaScript
- Inheritance and the prototype chain
JSON and Constructor function
Reply
apply()
method calls a function with a given this
value and arguments
provided as an array (or an array-like object).bind()
method creates a new function that, when called, has its this
keyword set to the provided value, with a given sequence of arguments preceding any provided when the new function is called.call()
method calls a function with a given this
value and arguments provided individually.apply()
, the fundamental difference is that call()
accepts an argument list, while apply()
accepts a single array of arguments.