Menu
×
×
Correct!
Exercise:Cast the "unknown" variable myVar as a string, using < >:
let myVar: unknown = "Hello world!";
console.log((<string>myVar).length);
Not CorrectClick here to try again. Correct!Next ❯let myVar: unknown = "Hello world!"; console.log(.length); |