I cant't get my code right

var mystar = "this is the start. " + " this is the end. "

Your code so far

Your browser information:

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

Challenge: Concatenating Strings with Plus Operator

Link to the challenge:

First of all, you can log it out to see what is happening:

console.log('***' + mystar + '***')
console.log('***' + 'This is the start. This is the end.' + '***')

The first line will show what you are making and the second line what it is supposed to be. (The *** stuff is just to show the beginning and end clearly.)

You also didn’t name your variable correctly.

Read the instructions closely. Details matter. At least to computers they do.

redacted by mod

// Check variable name and spaces in your sentence

Please don’t just give the answer, especially with the curriculum. This is a learning platform. We try to guide them to the answer, not give it to them to cut and paste.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.