Add Two Numbers with JavaScript
Number is a data type in JavaScript which represents numeric data.
Now let’s try to add two numbers using JavaScript.
JavaScript uses the + symbol as an addition operator when placed between two numbers.
Example:
myVar = 5 + 10;
myVar now has the value 15.
We can also subtract one number from another
JavaScript uses the - symbol for subtraction.
Example:
myVar = 12 - 6;
myVar would have the value 6.














