Why are class declarations not hoisted in javascript while function and variable declarations are? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 3

Why are class declarations not hoisted in javascript while function and variable declarations are?

Wouldn't it have been convenient to add this feature for classes too to be consistent?

3rd Sep 2019, 11:06 PM
Sonic
Sonic - avatar
1 Respuesta
4th Sep 2019, 6:31 AM
Aaron Eberhardt
Aaron Eberhardt - avatar