I can't figure out the const keyword

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

// Example

var ourStr = "I come first. " + “I come second.”;

// Only change code below this line

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

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14324.72.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.91 Safari/537.36

Challenge: Concatenating Strings with Plus Operator

Link to the challenge:

1 Like

Can you explain a little more about what you don’t understand? This is basically asking you to do the same thing as in the example. Do you understand the example?

1 Like

No, the only thing I am missing in my soding is " myStr should be created using the const keyword."

And how are you creating the myStr variable?

var myStr =

You are creating it using the var keyword.

You must replace var with const

1 Like

// Example

var ourStr = "I come first. " + “I come second.”;

// Only change code below this line

const myStr = "This is the start. " + “This is the end.”;

Thank you :slight_smile:

1 Like

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