You can edit and run your p5.js code in an online editor (such as the P5 Web Editor, OpenProcessing.org, or Glitch); or, in an application that you runs on your computer (such as Visual Studio Code or Atom).

Online p5.js Playgrounds

Some online editors are specific to p5.js. They are easy to get started with.

Other online editors are more flexible, but also require more work in order to set up a p5.js project.