28.
What is an arrow function?
A deprecated feature in ES6.
A function that cannot take any parameters.
A function defined using the function keyword.
A compact alternative to a traditional function.
Correct: D
An arrow function is a shorter, compact syntax for writing function expressions in JavaScript. It uses the => syntax, also known as the fat arrow, to declare functions. Arrow functions have a more concise syntax compared to traditional function expressions and do not bind their own this value, making them particularly useful in certain scenarios like in event handlers or when using array methods.