- 2

my javascipt code shows nothing there is the code: <!DOCTYPE html> <html> <body> <script> document. write ("Hello, World"); </script> </body> </html> pls tell what's the error.

8th Jul 2016, 10:38 AM
Ayush chadha
Ayush chadha - avatar
5 Answers
+ 5
When the asker doesn't return to his/her question, they're only in it for the xp. In this case, they put a space in 'document. write' hoping people will reply and point out the "syntax error". But JS doesn't care about spaces.
14th Jul 2016, 6:44 AM
ZinC
ZinC - avatar
- 1
there is a gap between document. write it should be document.write
9th Jul 2016, 2:28 AM
Manish Sachdeva
- 1
it's document.write...remove the space
10th Jul 2016, 5:32 PM
Krutarth Makwana
Krutarth Makwana - avatar
- 2
<script type='text/javascript'>
9th Jul 2016, 9:53 AM
Kavin Singh
Kavin Singh - avatar
- 2
where is the head tag in your document
11th Jul 2016, 12:57 PM
Harsh Rawat
Harsh Rawat - avatar