Learn about the type assertion in TypeScript. ... let code: any = 123; let employeeCode = <number> code; console.log(typeof(employeeCode)); //Output: number.
確定! 回上一頁