What are arrow func…
 
Notifications
Clear all

What are arrow functions in javascript?

2 Posts
3 Users
0 Likes
248 Views
0
Topic starter

What are arrow functions in javascript?

2 Answers
0

Arrow functions in JavaScript are a concise way to write anonymous functions. They have a more compact syntax compared to traditional function expressions and automatically capture the surrounding context’s this value, making them especially useful for certain callback functions and short, single-expression functions.

0

Arrow functions are anonymous functions i.e. functions without a name and are not bound by an identifier. Arrow functions do not return any value and can be declared without the function keyword. They are also called Lambda Functions. Syntax: const gfg = () => { console.log( “Hi Geek!” ); }

Share: