Build a Sentence Maker - Build a Sentence Maker

Tell us what’s happening:

its saying objective number 23 is wrong it says i dont have the right format for story number 2

Your code so far


let adjective = "beautiful";
let noun = "rabbit";
let verb = "angered";
let place = "garden";
let adjective2 = "big";
let noun2 = "lettuce";
let firstStory = "Once upon a time, there was a(n) beautiful rabbit who loved to eat lettuce. The rabbit lived in a garden and had big nostrils that blew fire when it was angered.";
console.log("First story: " + firstStory);
adjective = "small";
noun = "fish";
verb = "frighetened";
place = "pond";
adjective2 = "curved";
noun2 = "seaweed";
const secondStory = "Once upon a time there was a(n) small fish who loved to eat seaweed. The fish lived in a pond and had curved nostrils that blew fire when it was frightened.";
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/139.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

1 Like

Hi @Sinan

Both stories should incorporate the variables you declared.

Happy coding

it doesnt show a problem when i write story 1 like this

and i fixed spelling

1 Like

You need to use the variables you declared for this lab.

I don’t know why the first story passes, even though you didn’t use any of the variables.

Try using all the variable you declared, then post your updated code.

when i declare variables instead of text, it doesnt work

yup. didnt work i dont understand the issue

Everything is checked when i go back to old style other than step 23 which is formatting for story 2

If you’re still having problems please post your updated code and any questions you have.

let adjective = “beautiful”;

let noun = “rabbit”;

let verb = “angered”;

let place = “garden”;

let adjective2 = “big”;

let noun2 = “lettuce”;

let firstStory = “Once upon a time, there was a(n) beautiful rabbit who loved to eat lettuce. The rabbit lived in a garden and had big nostrils that blew fire when it was angered.”;

console.log("First story: " + firstStory);

adjective = “small”;

noun = “fish”;

verb = “poked”;

place = “pond”;

adjective2 = “curved”;

noun2 = “seaweed”;

const secondStory = “Once upon a time, there was a(n) small fish who loved to eat seaweed. The fish lived in a pondand had curved nostrils that blew fire when it was poked.”;

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

oh nevermind i fixed it spacing issue