Concatenating Strings with Plus Operator error

Concatenating Strings with Plus Operator error
0
#1

My code is here .
var myStr = "This is the start. " + “This is the end.”;

ii showing error
Use the + operator to build myStr

i don’t understand …!

0 Likes

#2

Can you post your actually code instead of a screenshot?

To enter a code block into the forum, precede it with a line of three backticks and follow it with a line of three backticks to make easier to read. See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.

0 Likes

#3

Keep the code that it started with, and add your code after they tell you to add it. I think it bugs out if you remove their code sometimes.

1 Like

#4

It worked… thanks a lot

0 Likes