Skip to content

Commit 0771dcc

Browse files
committed
1.2
1 parent 31d028d commit 0771dcc

File tree

1 file changed

+7
-3
lines changed
  • Sprint-2/1-key-errors

1 file changed

+7
-3
lines changed

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
// =============> write your prediction of the error here
77

8-
function square(3) {
9-
return num * num;
10-
}
8+
// function square(3) {
9+
// return num * num;
10+
// }
1111

1212
// =============> write the error message here
1313

@@ -16,5 +16,9 @@ function square(3) {
1616
// Finally, correct the code to fix the problem
1717

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

2024

0 commit comments

Comments
 (0)