<meta name="viewport" content="width=device-width, initial-scale=1.0">
B/c you aren’t loading the p5.js library within your HTML file, just your “sketch.js” file:
My advice is to begin w/ a minimum runnable “index.html” template file like this 1:
<script defer src=https://Unpkg.com/p5></script>
<script defer src=sketch.js></script>
Once verified it’s working, you can add more stuff to it little by little.
Here’s some online sketch using this very same minimum template:
Of course! Thanks so much
Still not 100% how this works as the src I’m using points to a page instead of somewhere in my files where I have saved p5.js, but I used this line in the head tag:
and it’s finally displaying my code, thanks!