re: What is the difference between these two ways of creating objects VIEW POST

VIEW FULL DISCUSSION
 

2 facts from mdn:

  • class is syntax sugar (es6)
  • in class no hoisting but function is hoisted
code of conduct - report abuse