Correct. That’s good.
(When you are very advanced and looking for trouble and want to reduce load for your processor, try noLoop() as described. I never do.)
That’s right. The IDE has different modes (Java, python…), p5.js is among them. See upper right corner in the IDE where it says JAVA.
But there are different websites offering coding in p5.js as an editor, like openprocessing.org for example.
see: Help! Why I cannot use the P5JS - #2 by GoToLoop
I never did it but you want to read this (imho): get started | p5.js
Chrisir