There was an error while loading. Please reload this page.
1 parent d28242a commit c6a44f1Copy full SHA for c6a44f1
1 file changed
Sprint-3/1-key-errors/0.js
@@ -1,5 +1,5 @@
1
// Predict and explain first...
2
-// =============> write your prediction here
+// =============> write your prediction here :there is a syntax error because string is decleared two tiimes.
3
4
// call the function capitalise with a string input
5
// interpret the error message and figure out why an error is occurring
@@ -8,6 +8,8 @@ function capitalise(str) {
8
let str = `${str[0].toUpperCase()}${str.slice(1)}`;
9
return str;
10
}
11
+capitalise("Ramesh");
12
+console.log()
13
14
// =============> write your explanation here
15
// =============> write your new code here
0 commit comments