Installing p5.js
There are a couple of ways you can start using p5.js and JavaScript. One option is to visit the p5.js website ( https://p5js.org/download ) and download the p5.js source code on to your system (see Figure 2-1).
At the time of the writing of this walkthrough, the download page has a link called ‘p5.js complete’ that includes the p5.js library and an example project. Download this archive file and find the folder named empty-example inside it. In this folder, you will find two files: the sketch.js file where you can write JavaScript code and an index.html file that can be ...