Build a Sentence Maker - Build a Sentence Maker

Tell us what’s happening:

code:

let adjective="fluffy";

let noun="Dragon";

let verb="happy";

let place="Volcano";

let adjective2="enormous";

let noun2="spicy tacos";

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);// You should log your first story using the message

"First story: [firstStory]"

adjective="gigantic";

noun="giant";

verb="bored";

place="Cloud kingdom";

adjective2="enormous";

noun2="sandwiches";

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);// You should log your second story using the format

"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/138.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

its giving error on comments mention that line is working perfectly but still

Hi @prashantm8432 and welcome to our community!

Both of your console.log statements have a formatting error (you are missing one character):

You should match this formatting:

You should output your first story to the console using the message "First story: [firstStory]".

1 Like

I’ve tried this as well it is not working if i put everything in quotes it takes it as string and just print the “First story: [firstStory]”

Sorry, to be clearer, your console.log should output:

First story: Once upon a time...

…but instead it outputs:

First story:Once upon a time...
1 Like

Yeah its working thank you it means a lot

1 Like