Complete the code to declare a heterogeneous enum with a string and a number.
enum Status {
Active = [1],
Inactive = 0
}Complete the code to access the string value of the enum member.
const currentStatus = Status.[1];Fix the error in the enum declaration to correctly mix string and number values.
enum Response {
Yes = [1],
No = "NO"
}Fill both blanks to create a heterogeneous enum with a string and a number.
enum Direction {
Up = [1],
Down = [2]
}Fill all three blanks to create a heterogeneous enum with string and number values and access a member.
enum Mode {
Read = [1],
Write = [2],
}
const modeValue = Mode.[3];