upvote
Was about to comment the same. It's a common mistake/gotcha.
reply
Possibly dumb question, but does that still hold inside p5js?
reply
p5 is just a wrapper that adds the setup() and draw() functions, so yes
reply