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 function is not going to work because a variable is declared twice (str)
2
+
// =============> write your prediction here
3
3
4
4
// call the function capitalise with a string input
5
5
// interpret the error message and figure out why an error is occurring
@@ -9,10 +9,5 @@ function capitalise(str) {
9
9
returnstr;
10
10
}
11
11
12
-
// =============> the error message 'Identifier 'str' has already been declared', diplays because the toUpperCase function does not change the value of the varible declared
0 commit comments