There was an error while loading. Please reload this page.
1 parent 65e5b19 commit 1b143adCopy full SHA for 1b143ad
1 file changed
Sprint-3/1-key-errors/0.js
@@ -14,6 +14,6 @@
14
//- I changed the variable name to "strg" to avoid the error.
15
// =============> write your new code here
16
function capitalise(str) {
17
- let strg = `${str[0].toUpperCase()}${str.slice(1)}`;
18
- return strg;
19
-}
+ return `${str[0].toUpperCase()}${str.slice(1)}`;
+}
+console.log(capitalise("abakar"));
0 commit comments