+ 3
document.write is wrong?
When i use document.write in other javascript console (not sololearn) it keep saying error Does it mean that this is wrong?
7 Antworten
+ 3
NoobGamer_17 It is possible that your app doesn't link the script file to a HTML document. The 'document' identifier refers to the HTML document object.
document.write() writes to the HTML document. If this is the case, you can use console.log() instead, which writes to the JS console.
+ 4
Possibly an instance of
https://stackoverflow.com/questions/3236353/javascript-document-write-error
It would help if you posted your code and the error message (if you received any).
+ 2
Thanks Hatsy Rei
+ 1
i can't post it because i do it on many other console, and app (Not SoloLearn)
+ 1
Hatsy Rei i use an app on android Named "CODE", and some other apps, they(the apps) think that the "document" on "document.write is a variable". It says "An error has occured, variable "document" is undefined
+ 1
but when i try on SoloLearn, it works without error
0
WAIT it was the drake meme lol 😁