Maths: Strings and Numbers

Maths: Strings and Numbers

x1 = "1";   // this is a string
y1 = "2";   // this is a string
x1+y1 = z;  // z = "12";

x2 = 1;     // this is a number
y2 = 2;     // this is a number
z2 = x2+y2; // z = 3;
Comments are closed.