Top 10 Javascript Interview Question With Answers | letsbug
Javascript Interview Questions 1. What is Rest Parameters? Answer: The Rest parameter syntax allows a function to accept indefinite number of arguments as an array. 2. What is Rest Operators? Answer: The Rest Operator allows us to call a function and then access those excess arguments as an array. 3. What is Currying functions? Answer: Currying is a function that takes one argument at a time and returns a new function expecting the next argument. 4. Immediately invoked functions example: Answer: (() => {})() 5. What is Call() Answer: The call() method calls the function with a given this value and arguments provided individually. 6. What is apply() Answer: The apply method calls the specified function with a given this value, and arguments provided as an array. 7. What is bind() Answer: The bind() method creates a new function that, when called, has its this keyword