HELP!!! What would var d=?

Asked 6 months ago
Viewed 198395 times
1
HELP!!! What would var d=?

1 Answer

2

Answer:

51015

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++)

Edit
avatar
Yasmeen Prosacco
15.5k 3 10 26
answered 6 months ago