There was an error while loading. Please reload this page.
1 parent 0758ad4 commit ba0c107Copy full SHA for ba0c107
1 file changed
Sprint-3/1-key-errors/0.js
@@ -8,10 +8,10 @@
8
// call the function capitalise with a string input
9
// interpret the error message and figure out why an error is occurring
10
11
-function capitalise(str) {
+/*function capitalise(str) {
12
let str = `${str[0].toUpperCase()}${str.slice(1)}`;
13
return str;
14
-}
+}*/
15
16
// =============> write your explanation here
17
@@ -22,4 +22,4 @@ function capitalise(str) {
22
23
function capitalise(str) {
24
return `${str[0].toUpperCase()}${str.slice(1)}`;
25
+}
0 commit comments