Computer Science, asked by NitinBhoi, 2 months ago

write
a JavaScript program to accept two numbers and performs its addition by using on click even.​

Answers

Answered by iAmHoBiSpRiTexD
13

Answer:

const num1 = 5;

const num2 = 3;

// add two numbers

const sum = num1 + num2;

// display the sum

console.log('The sum of ' + num1 + ' and ' + num2 + ' is: ' + sum);

Output

The sum of 5 and 3 is: 8

Hope it helps you mate..

Similar questions