執行 ❯
Node 伺服器
×
更改方向
更改主題,深色/淺色
前往 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): 錯誤 TS2322: 型別“number”不能分配給型別“string”。