Build a Sentence Maker - Build a Sentence Maker

Tell us what’s happening:

what’s wrong with the variables , the code keeps failing

Your code so far

let adjective = "hungry";
let noun = "gorilla";
let verb = "roaring";
let place = "lagos";
let adjective2 = "big";
let noun2 = "pizza";
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 + ".";
console.log(firstStory);

adjective = "sick";
noun = "lion";
verb = "hunting";
place = "kenya";
adjective2 = "angry";
noun2 = "animals";
let secondStory = "once upon a time, " + " there was a " + adjective + " " + noun + " who love to eat " + noun2 + "." + " The " + noun + " lived in a " + place + " and had " + adjective2 + " nostrils that blew fire when it was " + verb + ".";
console.log(secondStory);

Your browser information:

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

Challenge Information:

Build a Sentence Maker - Build a Sentence Maker

The story template should match exactly to the template in the instructions, including capitalization and spacing.

let adjective = “hungry”;

let noun = “gorilla”;

let verb = “roaring”;

let place = “lagos”;

let adjective2 = “big”;

let noun2 = “pizza”;

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 + “.”;

console.log(firstStory);

adjective = “sick”;

noun = “lion”;

verb = “hunting”;

place = “kenya”;

adjective2 = “angry”;

noun2 = “animals”;

let secondStory = "once upon a time, there was a(n) " + adjective + " " + noun + " who love to eat " + noun2 + ". The " + noun + " lived in a " + place + " and had " + adjective2 + " nostrils that blew fire when it was " + verb + “.”;

console.log(secondStory);

This is the story template from the instructions.

"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]."

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