Skip to content

Commit b7ef96b

Browse files
authored
fix: typo
1 parent 3126b98 commit b7ef96b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

1-js/04-object-basics/01-object/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ let user = {}; // “字面量” 的语法
2020

2121
![](object-user-empty.svg)
2222

23-
通常,我们用花括号。这种方式我们叫做**字面量**
23+
通常,我们用花括号。这种方式我们叫做 **字面量**
2424

2525
## 文本和属性
2626

@@ -288,7 +288,7 @@ alert( obj[0] ); // test (相同的属性)
288288
```js run
289289
let obj = {};
290290
obj.__proto__ = 5; // 分配一个数字
291-
alert(obj.__proto__); // [object Object] — 值为对象,与预期结果不同
291+
alert(obj.__proto__); // [object Object] — 值为对象,与预期结果不同
292292
```
293293

294294
我们从代码中可以看出来,把它赋值为 `5` 的操作被忽略了。

0 commit comments

Comments
 (0)