JavaScript_help_me_please

const keyword = "This is the ";
const myStr = keyword+"start. "+keyword+"end."; // Change this line

Why do I get:
You should use the + operator to build myStr .
Do not I use the operator + ?

Your code so far

const keyword = "This is the ";
const myStr = keyword+"start. "+keyword+"end."; // Change this line

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36

Challenge: Concatenating Strings with Plus Operator

Link to the challenge:

you are making it more complex than needed, do it without the keyword variable

1 Like