What is call(), apply(), and bind()?
Answer / glibwaresoftsolutions
These methods allow you to manually set the value of this inside a function.
Method Usage
call() Calls a function with a given this and arguments passed separately.
apply() Calls a function with a given this and arguments passed as an array.
bind() Returns a new function with a bound this, without executing it immediately.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is memory leak in javascript?
Explain the working of timers in JavaScript? Also elucidate the drawbacks of using the timer, if any?
How to redirect a url using JavaScript?
How to access the value of a textbox using javascript?
Why is javascript called richer interface?
How can a page be forced to load another page in javascript?
What do you mean by ide?
How do I open javascript?
What is output of “20” + 20 + 20 and “20” + ( 20 + 20)? In javascript?
What is the difference between client side javascript and server side javascript.
What is the output of 10+20+”30″ in JavaScript?
What are the javascript data types?