DEV Community

Discussion on: Javascript Developers should know these ways of defining functions

Collapse
 
tohka200213 profile image
tohka20-0213 • Edited

Thanks.

The other is the Function expression.

const myfuntion = function() {
  console.log("Yfunction called");
};
Enter fullscreen mode Exit fullscreen mode

However, I often use an arrow function instead of the above.