Starter Tutorials

A tutorial site for beginners!

Starter tutorials contains well written tutorials on various technologies. Simple examples have been provided through out the tutorials to help the beginners understand them in a easy way.

Go to Blog »

Problem Statement


Create a simple script which displays "Hello World" using internal javascript and external javascript. (Note: Use both document.write( ) and alert( ) methods)


Source Code


Internal JavaScript


ex1.html

Output

Click here for output


External JavaScript


ex1.html

ex1script.js

Output

Click here for output