TypeScript | Introduction to TypeScript | Question8

Last Updated :
Discuss
Comments

What will be the output of the following TypeScript code?

TypeScript
let x: any = "Hello";
x = 10;
console.log(typeof x);


"string"

"number"

"any"

"undefined"

Share your thoughts in the comments