Code QuizIntermediate

Class Expression Syntax

Understand how the optional name in a class expression is scoped when instantiating it.

Codetypescript
const Vehicle = class Car {
  wheels = 4;
};

const myCar = new Car();

What is the bug in this class expression usage?