write a javascript program to accept two numbers and perform addition of two numbers by using mouseover event
Answers
Answered by
4
Answer:
// store input numbers
const num1 = parseInt(prompt('Enter the first number '));
const num2 = parseInt(prompt('Enter the second number '));
//add two numbers
const sum = num1 + num2;
// display the sum
console.log(`The sum of ${num1} and ${num2} is ${sum}`);
Explanation:
done bro
Similar questions