Skip to content

Commit f51c24c

Browse files
committed
Predict and explain what the error might be
1 parent 5816a40 commit f51c24c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • Sprint-3/1-key-errors

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11

22
// Predict and explain first BEFORE you run any code...
33

4+
5+
46
// this function should square any number but instead we're going to get an error
57

6-
// =============> write your prediction of the error here
8+
// =============> function square(), shouldnt give a value to it , we can only pass
9+
// an argument when the function is called, with value in it which is called argument.
710

811
function square(3) {
912
return num * num;

0 commit comments

Comments
 (0)