DEV Community

loading...

Discussion on: ELI5: Functions vs. Class/Constructor in Javascript

Collapse
patarapolw profile image
Pacharapol Withayasakpunt • Edited

Trying to find differences between these might answer your question

  • Functions with function keyword
  • Arrow functions
  • Class constructor in ES5

It isn't always distinguishable between functions and class constructor... I have tried to distinguish these programmatically before -- github.com/patarapolw/any-serializ...

Collapse
gnio profile image
Gnio Author

Thanks for the link. Checking it out.

Thanks for taking the time to reply and sorry for the late response :D