Build a Sentence Maker - Build a Sentence Maker

Tell us what’s happening:

I don’t understand why in accordance to the required tests my step 14( using the correct format is incorrect). Basically the task is to build a sentence maker, by having declaring a verb, noun, noun2, adjective, adjective 2 and place.

The step that is confusing me is the following:

  1. You should use the following story template to create the first story and assign it to the firstStory variable: "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 code so far

let adjective = 'ugly';
let noun = 'girl';
let verb = 'raining';
let place = 'pit';
let adjective2 = 'big';
let noun2 = 'meat';
let firstStory;
 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(firstStory);

Your browser information:

User Agent is: Mozilla/5.0 (iPhone; CPU iPhone OS 18_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.5 Mobile/15E148 Safari/604.1

Challenge Information:

Build a Sentence Maker - Build a Sentence Maker

Is the sentence in your output spaced correctly? It looks like you’re missing a space here “eat meat.The girl”

Thank you so much, it worked.

1 Like