Build a Sentence Maker - Build a Sentence Maker

Tell us what’s happening:

I can’t understand where is the problem ; just say You should assemble your first story using the variables you declared in the correct order; same like second

Your code so far

// --- First set of variables ---
let adjective = "hungry";
let noun = "dragon";
let verb = "angry";
let place = "volcano";
let adjective2 = "giant";
let noun2 = "tacos";

// Assemble the first story using the correct template and variable order
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 + ".";

// Output the first story
console.log("First story: " + firstStory);

// --- Reassign variables for the second story ---
adjective = "tiny";
noun = "wizard";
verb = "laughing";
place = "castle";
adjective2 = "sparkly";
noun2 = "cookies";

// Assemble the second story using the same template
let 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 + ".";

// Output the second story
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/141.0.0.0 Safari/537.36

Challenge Information:

Build a Sentence Maker - Build a Sentence Maker

do not go to a new line when assembling the story