Build a Sentence Maker - Build a Sentence Maker

Tell us what’s happening:

I can’t pass 14 and 23 steps. What is wrong with my code, can someone help me?

Your code so far

  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. 23. You should use the correct story format for the second 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.

let adjective;
let noun;
let verb;
let place;
let adjective2;
let noun2;
adjective = "big";
noun = "Dragon";
verb = "fighting";
place = "Europe";
adjective2 = "wide";
noun2 = "meat";
const firstStory = "Once upon a time, there  was a(n) "+adjective+" "+noun+" which 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 = "software";
noun = "JavaScript";
verb = "used";
place = "USA";
adjective2 = "small";
noun2 = "browser";
 const secondStory = "Once upon a time, there  was a(n) " +adjective+" called "+noun+ " which 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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36 Edg/137.0.0.0

Challenge Information:

Build a Sentence Maker - Build a Sentence Maker

How does this compare to the text you were asked to use? Also, the only thing changing in each story are the variable values, so you should be able to use the same concatenated string for both stories.

I tried without that, it does not work.

You have spacing errors. Get the concatenation correct for the first story string, then use the same string for the second story. Console.log() the text given for a story, then console.log() what your code is producing to compare. If you are more comfortable using a template literal with interpolation, I think that is also acceptable for this project.

Edit: Spacing and one of the words, besides called, in the given text is not the same as your story text.