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.
1 parent 644248f commit ae53e31Copy full SHA for ae53e31
Sprint-2/1-key-errors/0.js
@@ -20,8 +20,8 @@
20
21
// =============> write your new code here
22
23
-function capitalise(firstLetters) {
24
- firstLetters = `${firstLetters[0].toUpperCase()}${firstLetters.slice(1)}`;
25
- return firstLetters;
+function capitalise(str) {
+ str = `${str[0].toUpperCase()}${str.slice(1)}`;
+ return str;
26
}
27
-console.log(capitalise("hello"))
+console.log(capitalise("str"))
0 commit comments