Skip to content

Commit ba0c107

Browse files
author
russom
committed
Comment out code to stop error throwing
1 parent 0758ad4 commit ba0c107

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • Sprint-3/1-key-errors

‎Sprint-3/1-key-errors/0.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
// call the function capitalise with a string input
99
// interpret the error message and figure out why an error is occurring
1010

11-
function capitalise(str) {
11+
/*function capitalise(str) {
1212
let str = `${str[0].toUpperCase()}${str.slice(1)}`;
1313
return str;
14-
}
14+
}*/
1515

1616
// =============> write your explanation here
1717

@@ -22,4 +22,4 @@ function capitalise(str) {
2222

2323
function capitalise(str) {
2424
return `${str[0].toUpperCase()}${str.slice(1)}`;
25-
}
25+
}

0 commit comments

Comments
 (0)