Build a Sentence Maker - Build a Sentence Maker

Hi all,

I am working on the Build a Sentence Maker problem, and am experiencing test failures on both test/s 15 and 25. I do not understand the reasoning for this test to be failing!

Here is the code:

let adjective = "deserted"; 

let noun = "PlayStation 3"; 

let verb = "running"; 

let place = "Chicago"; 

let adjective2 = "nonchalant"; 

let noun2 = "monitor"; 




let firstStory = "Once upon a time, there was a(n) " + adjective + " " + noun + 

" who loved to eat " + noun2 + ". The " + noun + " lived in a " + place + " and had " + adjective2 + " nostrils that blew fire when it was " + verb + "." ;

console.log("First story: " + firstStory)




adjective = "secretive"; 

noun = "book"; 

verb = "pacing"; 

place = "Aviemore"; 

adjective2 = "numberless"; 

noun2 = "telephone"; 




let secondStory = "Once upon a time, there was a(n) " + adjective + " " + noun + 

" who loved to eat " + noun2 + ". The " + noun + " lived in a " + place + " and had " + adjective2 + " nostrils that blew fire when it was " + verb + "." ;




console.log("Second story: " + secondStory)

Any Ideas?

You hit “Enter” in both of your variables when you were concatenating your string, so the tests see a new line character.

Ah, I see! The line breaks were causing the tests to fail. Cheers for spotting it and helping me out!