InterviewSolution
Saved Bookmarks
| 1. |
Tell some practical applications of call, bind and apply? |
|
Answer» The OUTPUT logged will be: null The REASON is for PROTOTYPE CHAINING. The __proto__ of ‘hello’ is the global String. console.log(('hello').__proto__);Then the __proto__ of it is the global OBJECT. console.log(('hello').__proto__.__proto__);Now, the Object is the final thing from which everything in JavaScript is created and it points to null. |
|