javascript code to add 3 numbers code example
Example 1: add two numbers javascript
var x = 2 + 3;
//x = 5
Example 2: add two numbers in javascript
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);