Skip to content

Commit f2a0d61

Browse files
committed
Add comment to indicate expected SyntaxError in square function
1 parent 8e24d75 commit f2a0d61

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • Sprint-3/1-key-errors

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
// this function should square any number but instead we're going to get an error
55

66
// =============> write your prediction of the error here
7+
// The program will throw a SyntaxError
78

89
function square(3) {
910
return num * num;

0 commit comments

Comments
 (0)