fix(curriculum): clarify where to write code in string formatter workshop (#66435)

This commit is contained in:
majestic-owl448
2026-03-17 11:09:51 +01:00
committed by GitHub
parent 7cd97506c3
commit f892796155
2 changed files with 2 additions and 2 deletions
@@ -19,7 +19,7 @@ learningIsFun
The second word in the `lowercaseWord` variable is `"case"`. To access the `c` in that word, you can use `lowercaseWord[5]`.
Use the `+` operator to concatenate `lowercaseWord.slice(0, 5)` with the result of using the correct method for converting strings to uppercase on `lowercaseWord[5]`.
Update the `camelCasedVersion` assignment to use the `+` operator to concatenate `lowercaseWord.slice(0, 5)` with the result of using the correct method for converting strings to uppercase on `lowercaseWord[5]`.
Now you should see `camelC` in the console.
@@ -18,7 +18,7 @@ const str = "abcd";
str.slice(-2); // cd
```
Use the `+` operator to concatenate `lowercaseWord.slice(0, 5) + lowercaseWord[5].toUpperCase()` with the result of using the `slice()` method on `lowercaseWord`. Pass in the number `-3` for the `slice()` method.
Update the `camelCasedVersion` assignment to also concatenate `lowercaseWord.slice(0, 5) + lowercaseWord[5].toUpperCase()` with the result of using the `slice()` method on `lowercaseWord`. Pass in the number `-3` for the `slice()` method.
And with that last change, your workshop is complete!