You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// =============> The fuction intends to capitalize the first letter of the input string
3
-
// from th left starting with the first character (str[0]).
2
+
// =============> write your prediction here
4
3
5
4
// call the function capitalise with a string input
6
5
// interpret the error message and figure out why an error is occurring
@@ -10,8 +9,5 @@ function capitalise(str) {
10
9
returnstr;
11
10
}
12
11
13
-
// =============> str has already been declared as a parameter function, so it cannot be redeclared within the function body. This will cause a syntax error. To fix this, we should use a different variable name for the new string we are creating.
0 commit comments