Do you know what will be the output of this code?
JavaScript
class A {}
console.log(typeof A);
Show answer and explanation
The answer is "function".
Classes are mostly syntax on top of constructor functions and prototypes. The main differences are that they must be called with new and their body is always in strict mode.