<!DOCTYPE html>
<html>
<body>
<h1>Multiplication using JavaScript </h1>
<p id=”demo”></p>
function multiply(num1,num2)
{
return num1*num2;
}
document.getElementById(“demo”).innerHTML=”Multiplication seen is “+multiply(4,3);
</body>
</html>
Advertisements