Build a Sentence Maker - Build a Sentence Maker

Tell us what’s happening:

It keeps saying “you should use the correct story format” for the first and second story. I have been looking for the issue for an hour now but I can’t seem to find it.

Your code so far

let adjective="delicious";
let noun="teacher";
let verb="sweating";
let place="Gotham City";
let adjective2="big";
let noun2="The Mayor";
const 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="crazy";
noun="librarian";
verb="running";
place="New York";
adjective2="rough";
noun2="Doctor";
let secondStory;
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)

Your browser information:

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

Challenge Information:

Build a Sentence Maker - Build a Sentence Maker

I can see from your secondStory that you have put the variables in quotes. Is t hat the correct syntax?

“a(n” is also possibly an issue as it may be asking you to use one or the other (but I haven’t tested that.

double check your spaces, look at the printed string to see where you are missing spaces

1 Like

I’m still not getting it. I removed spaces, added them back again, it still says its not the correct format.

Never mind, got it! Thanks!