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
What does 3 dots mean in javascript?
What value does prompt() return if the user clicked the cancel button?
How do you add an element at the end of an array?
What is an onclick?
How to submit a form using JavaScript by clicking a link?
How do you clear an array in javascript?
How can javascript make a web site easier to use? That is, are there certain javascript techniques that make it easier for people to use a web site?
Explain the working of timers in JavaScript? Also elucidate the drawbacks of using the timer, if any?
What is built in function in javascript?
Difference between private, public and static variable?
what is the difference between the below two statements:- (1) var myname = "akiii"; (2) myname = "akiii";
What is strict mode in javascript?
What’s relationship between javascript and ecmascript?
What are screen objects?
Which software is used for javascript?