Explain the difference between call() and apply()?
S.no | Call() | Apply() |
---|---|---|
1. | In JavaScript, call() is a predefined method used to invoke (call) methods with the use of an owner object as an argument (parameter). | apply() is a method to write another way which can be used on different objects. It’s usually action similar to call() action. |
BY Best Interview Question ON 25 Aug 2022