13 lines
462 B
JavaScript
13 lines
462 B
JavaScript
|
function multiplyBy()
|
||
|
{
|
||
|
num1 = document.getElementById("firstNumber").value;
|
||
|
num2 = document.getElementById("secondNumber").value;
|
||
|
document.getElementById("result").innerHTML = num1 * num2;
|
||
|
}
|
||
|
|
||
|
function divideBy()
|
||
|
{
|
||
|
num1 = document.getElementById("firstNumber").value;
|
||
|
num2 = document.getElementById("secondNumber").value;
|
||
|
document.getElementById("result").innerHTML = num1 / num2;
|
||
|
}
|