Skip to content

Commit 83b4a7b

Browse files
committed
run the code by calling the vanction with no value and the error message
1 parent f51c24c commit 83b4a7b

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

  • Sprint-3/1-key-errors

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@
55

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

8-
// =============> function square(), shouldnt give a value to it , we can only pass
8+
// =============> function square(), shouldn't give a value to it , we can only pass
99
// an argument when the function is called, with value in it which is called argument.
1010

1111
function square(3) {
1212
return num * num;
13-
}
13+
}
14+
console.log(square())
1415

15-
// =============> write the error message here
16+
// =============> Unexpected number
1617

1718
// =============> explain this error message here
1819

0 commit comments

Comments
 (0)