Build a Sentence Maker - Build a Sentence Maker

Tell us what’s happening:

Hi, Cannot pass test 14 and 23 in regards to the story’s format, I’ve tried a lot things is there a way that someone can review the code and help me spot the mistake.

best regards,

Your code so far

let adjective = "green";
let noun = "dragon";
let verb = "hungry";
let place = "castle";
let adjective2 = "seven";
let noun2 = "carrots";

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



adjective = "blue";
noun = "puppy";
verb = "a little hungry";
place = "masion";
adjective2 = "two";
noun2 = "rice";

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

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









Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36

Challenge Information:

Build a Sentence Maker - Build a Sentence Maker
https://www.freecodecamp.org/learn/full-stack-developer/lab-sentence-maker/build-a-sentence-maker

mske sure your story matches exactly the given format, the first thing I notice is that you have an extra space after the comma

Hi I fiixed the extra space and it still isn’t working anything else you might notice.

You have an extra space after the comma in both stories, but you should pass if you remove both.

Hello, again I’ve removed the spaces from both stories and the error still persits don’t know what else to do.

please share your updated code

let adjective ="green";

let noun ="dragon";

let verb ="hungry";

let place ="castle";

let adjective2 ="seven";

let noun2 ="carrots";

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

adjective ="blue";

noun ="puppy";

verb ="a little hungry";

place ="masion";

adjective2 ="two";

noun2 ="rice";

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

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

remember that a space (exactly one) is needed after a full-stop/period/dot and after the comma

Thanks!! I got it to pass.