Answer Posted / 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 |
Post New Answer View All Answers
Is javascript hard to learn?
Should I learn java first or javascript?
What is NaN in Javascript?
What are anonymous functions in Javascript?
Can you assign an anonymous function to a variable and pass it as an argument to another function?
What are decodeuri() and encodeuri() functions in javascript?
Why javascript is not secure?
What boolean operators can be used in JavaScript?
What is lambda in programming?
How to calculate fibonacci numbers in javascript?
Define event bubbling?
What is the use of window object?
What is isnan in javascript?
Explain promise in javascript?
What are the data types in js?