javascript console visual studio code code example
Example 1: runnig console.log on vs code terminal
{
"version": "2.0.0",
"tasks": [
{
"label": "Show in console",
"type": "shell",
"osx": {
"command": "/usr/local/bin/node ${file}"
},
"linux": {
"command": "/usr/bin/node ${file}"
},
"windows": {
"command": "C:\\Program Files\\nodejs\\node.exe ${file}"
},
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
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