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 c229426 commit 81ae2acCopy full SHA for 81ae2ac
Sprint-2/1-key-errors/0.js
@@ -22,6 +22,5 @@ function capitalise(str) {
22
// =============> write your new code here
23
24
function capitalise(str) {
25
- let capitalisedStr = `${str[0].toUpperCase()}${str.slice(1)}`;
26
- return capitalisedStr;
+ return str[0].toUpperCase() + str.slice(1);
27
}
0 commit comments