运行 ❯
Node 服务器
×
更改方向
更改主题,深色/浅色
前往 Spaces
let firstName: string = "Dylan"; // type string firstName = 33; // attempts to re-assign the value to a different type console.log(firstName);
prog.ts(2,1): 错误 TS2322:类型“number”不可分配给类型“string”。