Build a Sentence Maker - Build a Sentence Maker

Tell us what’s happening:

I don’t understand what I am doing wrong? I can’t pass the story format, but I don’t see if I miss any spaces.

Your code so far

let adjective;
let noun;
let verb;
let place;
let adjective2;
let noun2;

adjective = "tiny";
noun = "man";
verb = "needed";
place = "donutshop";
adjective2 = "big";
noun2 = "donuts";


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 is was " + verb + ".";
console.log("First Story: " + firstStory + "");


adjective = "beautiful";
noun = "girl";
verb = "asked";
place = "forest";
adjective2 = "small";
noun2 = "apples";

const 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 is was " + verb + ".";
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/148.0.0.0 Safari/537.36 Edg/148.0.0.0

Challenge Information:

Build a Sentence Maker - Build a Sentence Maker

GitHub Link: freeCodeCamp/curriculum/challenges/english/blocks/lab-sentence-maker/66c057041df6394ca796bf33.md at main · freeCodeCamp/freeCodeCamp · GitHub

Hey! I found the issue in your code. In both story strings you have:

"when is was " + verb

But it should be:

"when it was " + verb

You wrote is instead of it. This small typo is causing the format check to fail because the expected output doesn’t match.

Here’s the corrected line for the first story:

code removed by moderator

Make sure to fix the same typo in secondStory as well. After that, both stories should pass!

It is great that you solved the challenge, but instead of posting your working code, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge. How to Help Someone with Their Code Using the Socratic Method

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

literally didn’t see it at all! :face_holding_back_tears:

but I fear I did something wrong here because I still can’t pass two points stated: You should log your first story using the message "First story: [firstStory]". and the same for the secondStory! I tried so many varieties of it so I’m giving up

check the capitalization

also, do you need to add an empty string at the end?

I was so mind blowing to understand how to place space and capitalization, but I got it! Thank you!