Skip to content

Commit

Permalink
优化翻译
Browse files Browse the repository at this point in the history
  • Loading branch information
vector090 committed Sep 19, 2024
1 parent 258cc0e commit a7190e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 1-js/05-data-types/03-string/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ for (let char of "Hello") {
let str = 'Hi';

str[0] = 'h'; // error
alert( str[0] ); // 无法运行
alert( str[0] ); // 没成功
```

通常的解决方法是创建一个新的字符串,并将其分配给 `str` 而不是以前的字符串。
Expand Down

0 comments on commit a7190e8

Please sign in to comment.