Predict typeof 输出
预测输出 简单
题目
什么做 这个 code print 到 console?
代码
console.log(typeof "hello");
提示
typeof 返回类型 name as 字符串. 什么类型是 文本 in JavaScript?
解释
The typeof operator returns the type of a value as a string. Since "hello" is text, typeof "hello" returns "字符串". The console.log call prints that result: string
相关资源
相关课程
- 数据类型
学习关于基本数据类型 in programming.
相关速查表
- JavaScript Cheatsheet
快速引用 for JavaScript 数据类型 and typeof.
查阅不认识的术语
新手友好的术语表用大白话解释编程术语——变量、函数、DOM、Promise 等等。
解读错误信息
用大白话解释常见错误——什么意思、为什么发生、如何修复。
动手做项目
通过引导式项目应用所学,含起始代码与解决方案。