I use visual studio code for web development. when I use live server for open (.js) file the live server open in browser and I saw listing directory/ in my browser . my .html file work but .Js file cannot work
Asked
Active
Viewed 468 times
-1
-
If you are talking about vs code , then right click on .html file and then select open with live server – Muhammed shakir CK Aug 08 '21 at 11:20
-
Bro I said .html file work but .js file do not work – Muhammad Mubeen Aug 08 '21 at 11:26
-
Without seeing your code snippets cant say what is the problem, check if you are correctly loading the scripts – Muhammed shakir CK Aug 08 '21 at 11:33
1 Answers
-1
Actually, I saw my problem.Java Script file always attaches to the HTML file and is then show to the browser side. Otherwise in the JS file, when I code to the server-side, first use server code; and then attach HTML file and fs file to show to the terminal

Alex Punnen
- 5,287
- 3
- 59
- 71