Prev Next

Web / ES6 Interview questions

Explain arrow function in ES6.

Arrow functions are the shorthand notation to write ES6 functions. The definition of the arrow function consists of parameters, followed by an arrow (=>) and the body of the function.

An Arrow function is also known as 'fat arrow' function. We cannot use them as constructors.

const functionName = (arg1, arg2) => {  
    //body of the function  
}  

More Related questions...

Show more question and Answers...


Comments & Discussions