Cast the "unknown" variable myVar as a string, using the as keyword:
let myVar: unknown = "Hello world!"; console.log(@(17).length);
let myVar: unknown = "Hello world!"; console.log((myVar as string).length);
Click here to try again.
This will reset the score of ALL 30 exercises.
Are you sure you want to continue?