# Using a standard Web browser's document object document.write('Hello, World!'); # or with an alert, using a standard Web browser's window object (window.alert) alert('Hello, world!'); # or, from the Mozilla command line implementation print('Hello, world!'); # or, from the Windows Script Host WScript.Echo('Hello, world!'); # or, from Firebug, Apple Safari, or Google Chrome debug console console.log('Hello, world!');