javascript in vscode code example
Example 1: how to run javascript program in visual studio code
id =vinay;
const mul=function multi(a,b) {
return (a*b)
document.getElementById("vinay").innerHTML=mul(5,8)
}
Example 2: type checking js vscode
//type checking all js files (vscode)
//in settings.json:
"javascript.implicitProjectConfig.checkJs": true
//also gives you ability to enable TypeScript features like auto-import on save