Build a Sentence Maker - Build a Sentence Maker

Tell us what’s happening:

I don’t no why am not passing stage 23

Your code so far

let adjective = "Brilliant";
let noun = "Developer";
let verb = "baking";
let place = "quiant bakery";
let adjective2 = "fiery";
let noun2 = "Pastries"; 

const 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("First story: " + firstStory);

adjective = "brilliant";
noun = "Code Blvck";
verb = "coding";
place = "coffee shop";
adjective2 = "friendly";
noun2 = "pastry";

const secondStory = "Once upon a time, there was a " + adjective + " " + noun + " who loved to eat " + noun2 + ". " + noun + " lived in a cozy " + place + " and had " + adjective2 + " friends who supported him when he was " + verb + ".";

console.log("Second story: " + secondStory);

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Mobile Safari/537.36

Challenge Information:

Build a Sentence Maker - Build a Sentence Maker

what is that test about? what part of your code do you think satisfies it?

The test said I should

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

But even tho I still use the same format it still didn’t satisfy it

My own

"Once upon a time, there was a " + adjective + " " + noun + " who loved to eat " + noun2 + ". " + noun + " lived in a cozy " + place + " and had " + adjective2 + " friends who supported him when he was " + verb + “.”;

in what way does your sentence match the one that is required?

Hi @mozieraphael

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

You need to match the required text exactly with your strings.

The seventh word is missing parentheses. There are other places where you need to match the required text.

Happy coding