01a Hello world

Submitted by suryaismail on Thu, 01/25/2018 - 09:53

Create an html file that contains Javascript

We just want to see that Javascript lives inside html (web) files and that our browser can open and interpret those files

  1. Create a file on your computer called 'helloWorld.html'.  Now enter this code at the end of this document.
  2. Save the file and open it with your browser (chrome, firefox, explorer)
  3. Try experimenting with other ways of saying hello world with Javascript



  <p>Before the script...</p>

    document.write( 'Hello, world!' );

  <p>...After the script.</p>