const func = function() {
console.log('a');
return 5;
};
func();
Equivalent arrow function of the above Regular function
const func = () => (console.log('a'), 5);
func();
Thanks for reading π
Follow @codedrops.tech for daily posts.
Instagram β Twitter β Facebook
Micro-Learning β Web Development β Javascript β MERN stack β Javascript
codedrops.tech
Top comments (0)