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
Are javascript variables global?
What is the scope variable in javascript?
Define escape() function?
What is foreach loop in javascript?
What is difference == and === in javascript?
Why is javascript so popular?
Is notepad ++ an ide?
What is array constructor in javascript?
What are all the types of Pop up boxes available in JavaScript?
In a java script, what is the difference between "==" and "===" operator?
what difference between args.length and args.length() in command line argument?
Write JavaScript code to use file system in binary format?
Is javascript becoming obsolete?
What is stack in javascript?
Why do we need currying?