Build a Sentence Maker - Build a Sentence Maker

Tell us what’s happening:

I have issues with my formatting of the first and second story. I looked through everything carefully in regards to spacing and labeling. I can’t figure out my mistake.

Your code so far

let adjective = "big";
let noun = "dog";  // Fixed space before "man"
let noun2 = "pickles";
let place = "grocery store";
let adjective2 = "open";
let verb = "eating";

// First story, following the required format
const firstStory = "Once upon a time, there was a " + adjective + " " + noun + " who loved to eat " + noun2 + ". The " + noun + " lived in a(n) " + place + " and had " + adjective2 + " nostrils that blew fire when it was " + verb + ".";
console.log("First story: " + firstStory);
adjective = "fluffy";
noun = "cat";
noun2 = "kibble";  // Removed unnecessary period here
place = "garden shed";
adjective2 = "tiny";
verb = "pouncing";

// Second story, following the required format
const secondStory = "Once upon a time, there was a " + adjective + " " + noun + " who loved to eat " + noun2 + ". The " + noun + " lived in a(n) " + place + " and had " + adjective2 + " nostrils that blew fire when it was " + verb + ".";
console.log("Second story: " + secondStory);

Your browser information:

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

Challenge Information:

Build a Sentence Maker - Build a Sentence Maker

Welcome to the forum @iamnina

Check you correctly placed a(n) and a.
The tests do not seem to like the comment after the noun declaration.

Happy coding

Oh, I see. Thank you!

1 Like