This is javascript
var result = "2" + 5 + 5;
what would the value of result be? im guessing the 2 isnt taken into consideration?
would it be 210?
Thanks
This is javascript
var result = "2" + 5 + 5;
what would the value of result be? im guessing the 2 isnt taken into consideration?
would it be 210?
Thanks
Just try it out. Include this code in a html page and run it.
function test() {
var result = "2" + 5 + 5;
alert(result);
}
The result is 255
And call the function somewhere:
<body onLoad="test();">