How to add two no. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to add two no.

can we add two no. throug variable if yes then how?

24th Mar 2017, 2:59 AM
sudarshan somani
sudarshan somani - avatar
2 Answers
+ 14
var x = 1; var y = 2; var result = x + y;
24th Mar 2017, 2:39 PM
Tashi N
Tashi N - avatar
0
x + y; return x + y; that simple();
25th Mar 2017, 12:59 AM
Jacob Schneider
Jacob Schneider - avatar