Code QuizBeginner
let vs const Literal Widening
Understand why a let variable widens a string literal and breaks assignment to a literal type.
This code fails to compile. What is the bug and how do you fix it?
Understand why a let variable widens a string literal and breaks assignment to a literal type.
This code fails to compile. What is the bug and how do you fix it?