Skip to content

Commit 66a023b

Browse files
authored
Merge pull request #149 from Rebi9/fix/section5-3
Fix the typo of solution.md in section5-3
2 parents 21b8959 + 78051a0 commit 66a023b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

1-js/05-data-types/03-string/1-ucfirst/solution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
JavaScript では文字列はイミュータブル(不変)なので、最初の文字を "置換" することはできません。
22

3-
しかし、既存のものをベースに、再訴yの文字が大文字化された新しい文字列を作ることはできます。:
3+
しかし、既存のものをベースに、最初の文字が大文字化された新しい文字列を作ることはできます。:
44

55
```js
66
let newStr = str[0].toUpperCase() + str.slice(1);

0 commit comments

Comments
 (0)