Explore Library
Code QuizBeginner

Accessing Enum Members

Enum members are accessed with dot notation on the enum name, matching the exact member name.

Codetypescript
enum Color {
  Red,
  Green,
  Blue
}

const favorite = Color.green;
console.log(favorite);

What is the bug when accessing the enum member?