HELP! Appending Variables to Strings

Help!! Why isn’t this working???

Your code so far


// Example
var anAdjective = "awesome!";
var ourStr = "freeCodeCamp is ";
ourStr += anAdjective;

// Only change code below this line
var someAdjective = "fun";
var myStr = "Learning to code is ";
someAdjective += myStr;

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36.

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

flip your someAdjective and myStr

The way you have it right now, you are adding myStr to someAdjective with the result being:
"funLearning to code is ". You want to do the opposite.

2 Likes