+ 4
How to add variables in js?
For example, var g=20; var e=27; then how to add them?
2 Answers
+ 5
One example:
var sum = g + e;
The result will be stored in the variable sum
+ 3
var g = 20;
var e = 27;
var add = g + e;
document.write(add)
For example, var g=20; var e=27; then how to add them?