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)