Explore Library
Code QuizIntermediate

Ambient Variable with declare

Spotting why an ambient variable declaration is rejected by the compiler.

Codetypescript
declare var APP_VERSION: string = "1.4.2";

console.log(APP_VERSION);

What is the bug in this ambient declaration?