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 ca40d0c commit 9bca312Copy full SHA for 9bca312
1 file changed
Sprint-2/1-key-errors/2.js
@@ -4,20 +4,19 @@
4
// this function should square any number but instead we're going to get an error
5
6
// =============> write your prediction of the error here
7
-// You can't put a number value into an argument.
+// You can't put a number value into a parameter.
8
function square(3) {
9
return num * num;
10
}
11
12
// =============> write the error message here
13
// SyntaxError: Unexpected number
14
// =============> explain this error message here
15
-// It is not expecting a number to be in the function argument.
+// It is not expecting a number to be in the function parameter.
16
// Finally, correct the code to fix the problem
17
18
// =============> write your new code here
19
function square(num) {
20
21
22
23
-console.log("square",square(5))
0 commit comments