There was an error while loading. Please reload this page.
1 parent 107eaf2 commit 9a02929Copy full SHA for 9a02929
1 file changed
Sprint-3/1-key-errors/0.js
@@ -14,8 +14,8 @@
14
// If I give the new variable a different name, I hope it should work :)
15
16
function capitalise(str) {
17
- let newString = `${str[0].toUpperCase()}${str.slice(1)}`;
18
- return newString;
+ let capitalisedString = `${str[0].toUpperCase()}${str.slice(1)}`;
+ return capitalisedString;
19
}
20
21
console.log(capitalise("frumentius"));
0 commit comments