We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9256617 commit 0391e7dCopy full SHA for 0391e7d
Sprint-2/1-key-errors/2.js
@@ -3,22 +3,18 @@
3
4
// this function should square any number but instead we're going to get an error
5
6
-// =============> identifier not declared (unknown)
+// =============> write your prediction of the error here
7
8
function square(3) {
9
return num * num;
10
}
11
12
-// =============> Unexpected number
+// =============> write the error message here
13
14
-// =============> the parameter shouldn't be given an argument in the function definition
+// =============> explain this error message here
15
16
// Finally, correct the code to fix the problem
17
18
-// =============> my new code
19
-function square(num) {
20
- return num * num;
21
-}
22
-console.log(square(3));
+// =============> write your new code here
23
24
0 commit comments