We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 21b8959 + 78051a0 commit 66a023bCopy full SHA for 66a023b
1 file changed
1-js/05-data-types/03-string/1-ucfirst/solution.md
@@ -1,6 +1,6 @@
1
JavaScript では文字列はイミュータブル(不変)なので、最初の文字を "置換" することはできません。
2
3
-しかし、既存のものをベースに、再訴yの文字が大文字化された新しい文字列を作ることはできます。:
+しかし、既存のものをベースに、最初の文字が大文字化された新しい文字列を作ることはできます。:
4
5
```js
6
let newStr = str[0].toUpperCase() + str.slice(1);
0 commit comments