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 f95f159
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: Sprint-3/1-key-errors/2.js
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -3,10 +3,10 @@
3
3
// this function should square any number but instead we're going to get an error
4
4
5
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.
6
-
functionsquare(3){
7
-
returnnum*num;
6
+
// function square(3) {
7
+
// return num * num;
8
8
9
-
}
9
+
// }
10
10
11
11
// =============> write the error message here: SyntaxError: Unexpected number
0 commit comments