Build a Sentence Maker - Build a Sentence Maker

  1. You should use the correct story format for the first story: “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].”. Pay attention to spaces.

Im struggling to get past this

Your code so far

//1-12
let adjective = "happy";
let noun = "wizard";
let verb = "eat";
let place = "hogwarts";
let adjective2 = "hungry";
let noun2 ="witch";
//first story 
//13,14
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 + "."; 


Your browser information:

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

Challenge Information:

Build a Sentence Maker - Build a Sentence Maker

Hi. You have missed three spaces before three words.

Add console.log(firstStory) under the variable and see if you can spot them.

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