When you try to open a javaScript file, a similar error occurs ( lower right corner of the picture ).

And in the browser, it is reported that the file was not found or deleted.

Before that, I deleted VS Code and changed the folder with files (I also transferred VS Code )

    1 answer 1

    Specify the relative path so if MyCode is the main directory of the project (in this case the folder where the html-page is located):

     <script src="js/newCode.js"></script>