<!DOCTTYPE html>Note that any entry is first interpreted as a string, and if it's a number it needs to be converted into a number as shown in this program.
<!--Example 1: Promt2.html -->
<title> Prompt the user to enter two entries </title>
//read the first number as a string
firstentry = window.prompt('Enter the first number');
//read the second number as a string
secondentry = window.prompt('Enter the second number');
//convert strings to numbers
mult = number1* number2; //multiplying the two numbers
//show he result
document.writeln('<h2> The multiplication is ' + mult + '</h2>');
For more details, please contact me here.