Do you know what will be the output of this code?
JavaScript
const p = new Person();
class Person {}
Show answer and explanation
The answer is ReferenceError: Cannot access 'Person' before initialization.
Unlike function declarations, classes aren’t usable before their definition. They behave like let.