Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 10
if you’re just declaring the class then the semicolon is not required. On the other hand, if you’re writing a class expression (storing the class inside of a variable) then you would add the semicolon. See some examples here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes
31st Dec 2018, 7:43 PM
Pao
Pao - avatar