Facing error "Failed to load resource: the server responded with a status of 404 (Not Found)" in web browse console

Hi
There are few things that could not be working here. It can be because of something you did or the editor. The good news is that it can be fixed. We just need more info.

First of all, it is great you tried another solution and you shared it with us. This really helps. My first question is: What editor are you using to edit your code? Are you running the code from this editor? I am guessing you are running the code directly from the browser via local host. I just want to confirm this.

Second question: Did you change the src entries in your index.html file to point to your javascript files? For instance, you have ../p5.min.js in your index.html file. Where is this javascript file located with respect to the index.html file? Are they in the same folder OR is the js file one folder below?

Things are a bit more tricky because you are trying to run this code via localhost. I do not have one setup right now, at least not one with express.

So the first thing to do is to check the javascript files location. If the src definition is pointing to the files properly, then the next step is to make sure you can run index.html directly by double clicking on the file. It should be launched in a new browser window and it should execute. Notice this is executing the file as a client, not running the local host environment.

Let us know if this helps.

Kf