Skip to content

Commit 0391e7d

Browse files
committed
Revert "Fix square function parameter"
This reverts commit 3bcd5ba.
1 parent 9256617 commit 0391e7d

File tree

1 file changed

+4
-8
lines changed
  • Sprint-2/1-key-errors

1 file changed

+4
-8
lines changed

Sprint-2/1-key-errors/2.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,18 @@
33

44
// this function should square any number but instead we're going to get an error
55

6-
// =============> identifier not declared (unknown)
6+
// =============> write your prediction of the error here
77

88
function square(3) {
99
return num * num;
1010
}
1111

12-
// =============> Unexpected number
12+
// =============> write the error message here
1313

14-
// =============> the parameter shouldn't be given an argument in the function definition
14+
// =============> explain this error message here
1515

1616
// Finally, correct the code to fix the problem
1717

18-
// =============> my new code
19-
function square(num) {
20-
return num * num;
21-
}
22-
console.log(square(3));
18+
// =============> write your new code here
2319

2420

0 commit comments

Comments
 (0)