111k views
4 votes
HELP!!! What would var d=?

HELP!!! What would var d=?-example-1
User Eddinho
by
8.6k points

1 Answer

4 votes

Answer:

51015

Step-by-step explanation:

Var b is a string, and it'll treat addition like string concatenation (aka just adding a message.) Since it's concatenation, it'll then turn the numbers/integers into strings.

This kind of behavior might be different depending on the language, though. Some languages might not allow this. (For example, C and C++)

User ChetPrickles
by
7.9k points