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