4 ms·
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 wo
by Sephr 17y ago
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.
- wolfgke 17y agoOr rather: alert('Hello, World!')