Skip to content

Commit c6a44f1

Browse files
first prediction
1 parent d28242a commit c6a44f1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • Sprint-3/1-key-errors

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Predict and explain first...
2-
// =============> write your prediction here
2+
// =============> write your prediction here :there is a syntax error because string is decleared two tiimes.
33

44
// call the function capitalise with a string input
55
// interpret the error message and figure out why an error is occurring
@@ -8,6 +8,8 @@ function capitalise(str) {
88
let str = `${str[0].toUpperCase()}${str.slice(1)}`;
99
return str;
1010
}
11+
capitalise("Ramesh");
12+
console.log()
1113

1214
// =============> write your explanation here
1315
// =============> write your new code here

0 commit comments

Comments
 (0)