I a noob, recently started working with Sublime and it seems incredible. I recently downloaded node.js and chocolatey so i could run .js in Sublime. then i ran the command to add .js to this windows 11 machine
then replaced the shell cmd: make with
{
“cmd”:[“node”, “$file”],
“selector”: “main.js”
}
But when I typed out this start
let name = prompt(“what is your name”);
console.log(name);
get this error
let name = prompt(“what is your name”);
ReferenceError: prompt is not defined?
I can get other simple lines to run like:
let name = “fred”;
console.log(name);
Am i missing a basic library?