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
{{ message }}
Repository navigation
Commit 00fdc77
Browse filesBrowse the repository at this point in the historyBrowse files
// Tha parameter 'str' is declared another time insie the function , this will cause an error to be thrown.
3
4
4
5
// call the function capitalise with a string input
5
6
// interpret the error message and figure out why an error is occurring
@@ -9,5 +10,10 @@ function capitalise(str) {
9
10
returnstr;
10
11
}
11
12
12
-
// =============> write your explanation here
13
-
// =============> write your new code here
13
+
// =============> write your explanation here SyntaxError: Identifier 'str' has already been declared => line 10 varibale str should not be declared again.
0 commit comments