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 f4e38d3 commit 8a162e3Copy full SHA for 8a162e3
Sprint-2/1-key-errors/2.js
@@ -10,11 +10,16 @@ function square(3) {
10
}
11
12
// =============> write the error message here
13
-
+// SyntaxError: Unexpected number
14
// =============> explain this error message here
15
+// The "Unexpected number"
16
// Finally, correct the code to fix the problem
17
+// The "Unexpected number" error arises when a number is improperly positioned or used within JvaScript code
18
// =============> write your new code here
19
+ function square(num){
20
+ return num * num;
21
+}
22
+
23
+console.log(square);
24
25
0 commit comments