Build a Sentence Maker - Build a Sentence Maker

Tell us what’s happening:

Getting error on step 15. I cannot find where the variables declared are not in the correct order. I keep seeing that the common solution to this is to remove the line breaks, but I do not see where.

Your code so far

let adjective = "old";
let noun = "man";
let verb = "fishing";
let place = "house";
let adjective2 = "big"; 
let noun2 = "fish";
let firstStory = "Once upon a time, there was a(n) " + adjective + " " + noun + " who loved to eat " + noun2 + ". The man lived in a " + place + " and had " + adjective2 + " nostrils that blew fire when it was " + verb + ".";
console.log("First story: " + firstStory);

Your browser information:

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

Challenge Information:

Build a Sentence Maker - Build a Sentence Maker

Welcome to the forum @FT3 !

The [noun] lived

In the story string, you should use variables to replace bracketed words. You overlooked this one.

Happy coding!

1 Like

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