String operations | Sololearn: Learn to code for FREE!

0

String operations

Which line of code produces an error? 3 + 4 '5' + 6 "7" + 'eight' "one" + "2" why is the answer ‘5’+6

7/29/2017 6:19:18 PM

Carson Feng

1 Answer

New Answer

+5

All others are of the same type, so they can be added/concatenated no problem. But you can't add up an integer with a string.