Build a Sentence Maker - Build a Sentence Maker

Tell us what’s happening:

What’s going on? I’ve tried everything. I think the problem comes out when I compose the sentence but I don’t understand why, everything seems correct to me, spaces, punctuation. What am I missing?

Your code so far

let adjective = "beautiful";
let noun = "girl";
let verb = "hangry";
let place = "toilette";
let adjective2 = "cold";
let noun2 = "fish";
let firstStory;
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);

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.3.1 Safari/605.1.15

Challenge Information:

Build a Sentence Maker - Build a Sentence Maker

  • you are redeclaring “firstStory”!!
  • it requires a “space” between them

happy coding :slight_smile:

I add the space but nothing..

did you remove the double declaration? that is a syntax error and would stop the code from working

Thanks, solved, now it works :ok_hand: