DEV Community

Discussion on: Different types of Functions in JavaScript

Collapse
 
gmartigny profile image
Guillaume Martigny

Nice article. Small comment, on the third arrow function example, when you write :

const noise2 = _ => console.log("Pling");
Enter fullscreen mode Exit fullscreen mode

There's an unused parameter named _ instead of no parameter. Both are valid anyway, just wanted to point out the difference ;)

Collapse
 
jaamaalxyz profile image
Md. Jamal Uddin

Yeah! It's intentional. Only for showing variation. Thanks so much for your comment.