- Create a file on your computer called 'helloWorld.html'. Now enter this code at the end of this document.
- Save the file and open it with your browser (chrome, firefox, explorer)
<p>Before the script...</p>
document.write( 'Hello, world!' );
<p>...After the script.</p>