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