+ 1
var apples ="3" var oranges ="3" alert(+apples + +oranges);
Why the Result is 5 ???
2 Respostas
+ 5
in JavaScript prefixing a variable with "+" coverts it to an integer/number.your question should be
var apples="3" oranges="2"
so 3+2=5
+ 1
thanks :)