Why do we need to use two concatenation operators for one variable?

const myStr = “My name is “+ myName +” and I am well!”;
and not- +“myName” or “+myName”

thank you

the topic of this exercise is: Constructing Strings with Variables. 29/113 in basic Javascript.

thank you

hi there,
You built a variable called MyName. So it is not a string, te be set in quotes.
The myStr concatinates a string + a variable + a string .

thank you.
I just understood that the variable was not in “”, but rather was connecting 2 strings.
much success to you.

1 Like

to delete a mismatch:
It is not a string, so not put it in stringquotes.
Sometimes it is not easy to describe .
Hope it helps you .