I keep getting this when I try coding JavaScript..... Why?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I keep getting this when I try coding JavaScript..... Why??

me.js:6 document.write(x); ^ ReferenceError: document is not defined at Object.<anonymous> (me.js:6:1) at Module._compile (internal/modules/cjs/loader.js:778:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Function.Module.runMain (internal/modules/cjs/loader.js:831:12) at startup (internal/bootstrap/node.js:283:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3) Process finished with exit code 1.

16th Aug 2020, 10:41 PM
Solomon
Solomon - avatar
4 Answers
+ 1
Use the Web section not the java one
17th Aug 2020, 3:33 AM
Ved Thaker
Ved Thaker - avatar
+ 1
Solomon go to code an in first there will be Web click on it and go to js then code
18th Aug 2020, 3:31 AM
Ved Thaker
Ved Thaker - avatar
0
How
17th Aug 2020, 12:48 PM
Solomon
Solomon - avatar
0
Thanks
18th Aug 2020, 11:37 AM
Solomon
Solomon - avatar