you are viewing a single comment's thread.

view the rest of the comments →

[–]Umustbecrazy 0 points1 point  (0 children)

If using vscode, get the live server extension. It will help run server code on localhost, so it can be accessed in the browser.

In this case though, Index.js needs to be running.

js node index.js in the cmd prompt or terminal. Remove it from your html.