主页
TypeScript
TypeScript 简单类型
demo_simple_types_infer
运行 ❯
×
更改方向
保存代码
更改主题
// Implicit any as JSON.parse doesn't know what type of data it returns so it can be "any" thing... const json = JSON.parse("55"); // Most expect json to be an object, but it can be a string or a number like this example console.log(typeof json);
number