Run ❯
Get your
own
website
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
let firstName = "Dylan"; // inferred to type string firstName = 33; // attempts to re-assign the value to a different type console.log(firstName);
prog.ts(2,1): error TS2322: Type 'number' is not assignable to type 'string'.