use js in html visual studio code code example
Example 1: vs code enable "html" in "javascript"
"emmet.includeLanguages": {
"javascript": "javascriptreact",
"vue-html": "html",
"razor": "html",
"plaintext": "pug"
}
Example 2: how to run javascript in visual studio code
// install live server and then right click on your index.html and the keep the browser ready