Run ❯
Get your
own
website
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
let x = 'hello'; console.log(((x as unknown) as number).length); // x is not actually a number so this will return undefined
prog.ts(2,40): error TS2339: Property 'length' does not exist on type 'number'.