The rule is: If you add a number and a string, the result will be a string!
Example
x=5+5;document.write(x);
x="5"+"5";
document.write(x);
x=5+"5";
document.write(x);
x="5"+5;
document.write(x);
The rule is: If you add a number and a string, the result will be a string!
0 comments: