To view the console, open your browser's web developer tools
via the keyboard shortcut Ctrl + Shift + i or command + option + i,
then click the "Console" tab.
Use log when you're curious about what your code is doing!
Parameters
message: any
Returns void
Example
q5.draw = function () { circle(mouseX, mouseY, 80); log('The mouse is at:', mouseX, mouseY); };
⭐ Logs a message to the JavaScript console.
To view the console, open your browser's web developer tools via the keyboard shortcut
Ctrl + Shift + iorcommand + option + i, then click the "Console" tab.Use
logwhen you're curious about what your code is doing!