0

I'm just into Javascript after python and I set Vscode for it, but somehow it isn't working as I want. I've made a calculator, but I couldn't start it because of the error message. I just downloaded a simple calculator and uploaded it to GitHub, the code seems to be ok, so it should work

The message that I got when I want to run the code is the following:

ReferenceError: document is not defined
at Object.<anonymous> (C:\Users\Beni\Desktop\javascript\script.js:89:25)
at Module._compile (node:internal/modules/cjs/loader:1103:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1155:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
at node:internal/main/run_main_module:17:47

Does someone know what should I do? I couldn't find the solution anywhere

Here is the code: https://github.com/sigzer/Calculator-with-js

Thanks for your time and help!

0 Answers0