Predict 对象属性 Access
预测输出 入门
题目
什么做 这个 code print?
代码
const book = { title: "Dune", pages: 412 };
console.log(book.title);
提示
点 notation accesses 值存储 at 那个键.
解释
The object book has a title property with the value "Dune". Using dot notation book.title retrieves that value, so console.log prints: Dune
相关资源
相关课程
- JavaScript 对象
学习如何 access 对象属性.
查阅不认识的术语
新手友好的术语表用大白话解释编程术语——变量、函数、DOM、Promise 等等。
解读错误信息
用大白话解释常见错误——什么意思、为什么发生、如何修复。
动手做项目
通过引导式项目应用所学,含起始代码与解决方案。