May 14, 2023
Program to use Addition Operator JavaScript Language
let a = 10
let b = 20
let total;
total = a + b;
console.log("total number is = ", total);
Output
total number is = 30
Steps Description
- Declare three variables
a, b
andtotal
- Initialize both variables with value of 10 and 20 respectively
a=10, b=20
- Assign
total
variable with Assignment Operators (=
) with the sum/Addition value of variablesa
andb
a, b
variables की value को (+
) Addition Operators ki सहयता सेa+b
numbers को adds/sum जोड़ा गया हैंconsole.log
inbuilt function की मदद्द सेtotal
variable की value को display किया गया हैं
by : Suhel Akhtar
Quick Summary:
Addition Operator JavaScript Program