Answers for "How do We can assign the result of mathematical operations to new variables."

0

How do We can assign the result of mathematical operations to new variables.

let num1 = 10;
let num2 = 5;

let addition = num1 + num2;
let subtraction = num1 - num2;
let division = num1 / num2;
let multiplication = num1 * num2;

console.log(addition);       // -> 15
console.log(subtraction);    // -> 5
console.log(division);       // -> 2
console.log(multiplication); // -> 50
Posted by: Guest on February-28-2022

Code answers related to "How do We can assign the result of mathematical operations to new variables."

Browse Popular Code Answers by Language