Skip to content

Commit 92ef890

Browse files
authored
Fix typo
1 parent bc2aa56 commit 92ef890

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

1-js/05-data-types/03-string/article.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,13 @@ alert( `My\n`.length ); // 3
136136

137137
注意 `\n` 是一个单独的“特殊”字符,所以长度确实是 `3`
138138

139-
```warn header="`length` is a property"
139+
```warn header="`length` 是一个属性"
140140
掌握其他语言的人,有时会错误地调用 `str.length()` 而不是 `str.length`。这是行不通的。
141141

142142
请注意 `str.length` 是一个数字属性,而不是函数。之后不需要添加括号。
143143
```
144144
145-
## 访问字符
145+
## 访问字符
146146
147147
在 `pos` 位置获取一个字符,可以使用方括号 `[pos]` 或者调用 [str.charAt(pos)](mdn:js/String/charAt) 方法。第一个字符从零位置开始:
148148
@@ -201,7 +201,7 @@ str = 'h' + str[1]; // 字符串替换
201201
alert( str ); // hi
202202
```
203203

204-
下面的文章,我们将看到跟多的示例
204+
下面的文章,我们将看到更多的示例
205205

206206
## 改变大小写
207207

0 commit comments

Comments
 (0)