Hacker Newsnew | past | comments | ask | show | jobs | submitlogin



Wouldn't JavaScript be print('Hello, World!') instead of document.write('Hello, World!')? The DOM isn't part of JavaScript; it's just a common environment. I would assume that the official JavaScript shell's environment would be assumed instead.


Or rather: alert('Hello, World!')




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: