The arithmetic addition (+) operator returns the sum of two numeric operands.
If the first operand is a number, but the second is a string or a Boolean, the second operand is converted to a number.
Examples:
1 + 2
Result = 3
1 + "JUAN"
Result = 1
1 + "32JUAN"
Result = 33
Copyright © 2010 CA. All rights reserved. | Email CA about this topic |