Code QuizBeginner

Type Inference on Declarations

Understand how an inferred type restricts later reassignment.

Codetypescript
let city = "London";
city = 42;
console.log(city);

What is the bug in this code?