Skip to content

Commit dc1ecca

Browse files
committed
made a prediction on what the error could be and gave value by calling the function
1 parent d28242a commit dc1ecca

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • Sprint-3/1-key-errors

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
// Predict and explain first...
2-
// =============> write your prediction here
2+
// on line 8, let declaring with name the same as the parameter
33

44
// call the function capitalise with a string input
55
// interpret the error message and figure out why an error is occurring
6-
6+
//
77
function capitalise(str) {
88
let str = `${str[0].toUpperCase()}${str.slice(1)}`;
99
return str;
1010
}
11-
12-
// =============> write your explanation here
11+
console.log(capitalise("error")
12+
//
1313
// =============> write your new code here

0 commit comments

Comments
 (0)