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 cd942b8 commit 906778cCopy full SHA for 906778c
Sprint-2/1-key-errors/0.js
@@ -13,7 +13,6 @@
13
// as the variable in side the function has the same name as the function variable.
14
// =============> write your new code here
15
function capitalise(str) {
16
- let str1 = `${str[0].toUpperCase()}${str.slice(1)}`;
17
- return str1;
+ return `${str[0].toUpperCase()}${str.slice(1)}`;
18
}
19
console.log(capitalise("abcd"));
0 commit comments