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
Copy file name to clipboardExpand all lines: Sprint-2/1-key-errors/2.js
+9-6Lines changed: 9 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -3,18 +3,21 @@
3
3
4
4
// this function should square any number but instead we're going to get an error
5
5
6
-
// =============> write your prediction of the error here
6
+
// A number cannot be used as a parameter.=============> write your prediction of the error here
7
7
8
-
functionsquare(3){
9
-
returnnum*num;
10
-
}
11
8
12
-
// =============> write the error message here
9
+
// SyntaxError: Unexpected number =============> write the error message here
10
+
13
11
14
-
// =============> explain this error message here
12
+
// The parameter is not meant to be a number. Also we are trying to return num that was not never created. =============> explain this error message here
0 commit comments