Appending Variables to Strings TNV

Tell us what’s happening:

// running tests

Cannot read property ‘length’ of null

// tests completed

Your code so far

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

// Only change code below this line

var someAdjective = "amazing!";
var myStr = "Learning to code is ";
someAdjective += myStr;

Your browser information:

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

Link to the challenge:

You’re no appending someAdjective to myStr. You are appending myStr to someAdjective.

1 Like