I'm a beginner and just started learning Javascript. I'm trying to write some code where I ask the user for some input, so I used window.prompt() but I got this error
ReferenceError: windows is not defined
at Object.<anonymous> (c:\Users\\cal.js\ca.js:1:11)
at Module._compile (internal/modules/cjs/loader.js:1118:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1138:10)
at Module.load (internal/modules/cjs/loader.js:982:32)
at Function.Module._load (internal/mo`enter code here`dules/cjs/loader.js:875:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47
is there an alternative function/method that I can use to get input? I understand this method is only available for browsers but I want to be able to write all my code in vscode. Thanks