170k views
0 votes
Look at the following assignment statements:

word1 = "rain"
word2 = "bow"

What is the correct way to concatenate the strings?

1 newWord = word1 == word2

2 newWord = word1 + word2

3 newWord = word1 * word2

4 newWord = word1 - word2

2 Answers

4 votes

Answer:

2 newWord = word1 + word2

Step-by-step explanation:

3 votes

Answer: number 2 is the correct way to do it

Step-by-step explanation:

User Dpgaspar
by
4.6k points