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
// Predict and explain first BEFORE you run any code...
3
2
4
3
// this function should square any number but instead we're going to get an error
5
4
6
-
// =============> write your prediction of the error here
7
-
5
+
// =============> write your prediction of the error here : The funcation parameter 3 this will cause an error to be thrown because the parameter is not a valid identifier.
8
6
functionsquare(3){
9
7
returnnum*num;
8
+
10
9
}
11
10
12
-
// =============> write the error message here
11
+
// =============> write the error message here: SyntaxError: Unexpected number
13
12
14
-
// =============> explain this error message here
13
+
// =============> explain this error message here: SyntaxError: Unexpected number , the parameter 3 is not a valid identifier it should ba valid identifier like num.
0 commit comments