Problem Statement:

Create a script to read your name and mobile number and display the same on the web page. (Hint: Use prompt( ) method for reading values)

Source Code:

ex2.html

ex2script.js

Output:

Click here for output