Currently in the process of developing a basic JavaScript program, and I am aiming to obtain the output in the form of an equation such as 2 x 2 = 4. My objective is to have this precise equation displayed as the output. Below is the code snippet that I am working with. Any guidance or assistance would be greatly appreciated.
<script>
function input() {
value1 = 1 * prompt("Please enter the 1st number", 0);
value2 = 1 * prompt("Please enter the 2nd number", 0);
document.getElementById("v1").innerHTML = (value1)
document.getElementById("v2").innerHTML = (value2)
}
function output() {
document.getElementById("check").innerHTML = (value1 * value2);
}
</script>