Don’t write an anonymous function in JavaScript

This is a warning for you that never try to write an anonymous function on JavaScript!

A featured image
  1. Function as declaration
  2. Function as expression
  3. Function as constructor
(function () {
throw new Error("here");
})();
(function thisIsOurFunction() {
throw new Error("oops");
})();

--

--

Currently doing some stuff on Web Platform and learn managing a team.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Adib Firman

Currently doing some stuff on Web Platform and learn managing a team.