-1

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

1 Answers1

-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