- 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.
5 ответов
+ 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.
- 1
there is a gap between document. write it should be document.write
- 1
it's document.write...remove the space
- 2
<script type='text/javascript'>
- 2
where is the head tag in your document