You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
good suggestion. this is one of the annoying things about the JavaScript language itself, it doesn't throw any error when you don't have the right number of arguments so things can fail silently, making things very hard to debug!
luckily @iamjessklein and @toolness are thinking about ways to add functionality to the p5.js library to add warnings and errors that make things friendlier for beginners. #971
No warning or errors appears if a function was called with an incorrect number of parameters.
e.g.
ellipse(mouseX,mouseY,10);
which requires 4 parameters, doesn't show anything, but obviously doesn't run either.The text was updated successfully, but these errors were encountered: