Arrow functions were introduced in ECMAScript _________.
- 5
- 6
- 2015
- 2018
Arrow functions were introduced in ECMAScript 2015 (ES6). ES6 brought many enhancements to JavaScript, and arrow functions were one of the notable additions. They offer a more concise syntax for defining functions and have lexical scoping for this, making them a valuable addition to modern JavaScript.
Loading...
Related Quiz
- The method _______ returns the index of the first element in the array that satisfies the provided testing function.
- When you want to store multiple values in a single variable, you should use a(n) _________.
- The _________ method of an XMLHttpRequest object is used to send the request to a server.
- You are debugging a piece of code and encounter a variable declaration let [a, b, ...rest] = [10, 20, 30, 40, 50];. What will be the value of rest?
- The _________ method is used to bind an object context to a function and is called immediately.