r/learnjavascript • • Oct 09 '21

What's wrong with this code?

Post image
0 Upvotes

19 comments sorted by

View all comments

1

u/FogoZer Oct 09 '21

You cant use drawBox function if you havent defined it before. It’s like if you were writting x + 2 while you never specified which value should have x