Build a Sentence Maker - Build a Sentence Maker

Tell us what’s happening:

I keep failing the part that says to pay attention to spaces, and I’ve tried everything. What can I do?

Your code so far

let adjective = "nice";
let noun = "girl";
let verb = "hit";
let place = "house";
let adjective2 = "cool";
let noun2 = "rice";
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 = "fine";
noun = "boy";
verb = "pull";
place = "bungalow";
adjective2 = "awesome";
noun2 = "biscuit";
let secondStory = "There was a " + adjective + " " + noun + " who loved to care for " + noun2 + ". The " + noun + " always stays in " + place + " and had " + adjective2 + " face that was " + verb + ".";
console.log("Second story: " + secondStory);

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36

Challenge Information:

Build a Sentence Maker - Build a Sentence Maker
https://www.freecodecamp.org/learn/javascript-v9/lab-sentence-maker/build-a-sentence-maker

you are not using the provided template for the second story, you need to use the same template

1 Like