JS: Appending Variables to Strings

Tell us what’s happening:
I’m stuck… is it about space or semicolor or what?? heeeelp please:)

Your code so far

// Example

var anAdjective = “awesome!”;

var ourStr = "freeCodeCamp is ";

ourStr += anAdjective;

// Only change code below this line

var someAdjective = “nice interesting funny!”;

var myStr = "Learning to code is ";

myStr =+ someAdjective;

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/appending-variables-to-strings

Ok… I found it:/ it’s too early to think clear;)

1 Like

At least tell us what you found! peope that found the sollution and not sharing it are so frustrating

Like start with explaining why it should be:

var someAdjective= "awesome!";

var myStr = "Learning to code is ";

myStr += someAdjective;

and then refering to the text :
just like in the above example

var anAdjective = "awesome!";

var ourStr = "freeCodeCamp is ";

ourStr += anAdjective;
1 Like

Use one string as another

1 Like