Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

216
Views
ReferenceError: document is not defined - Javascript

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!

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!