Build a Sentence Maker - Build a Sentence Maker

Tell us what’s happening:

I keep getting this message:

You should log your first story to the console using the message “First story: [firstStory]”.

And I have done that but I keep getting the message

Your code so far

let adjective = "huge";
let noun = "dragon";
let verb = "breathing";
let place = "cave";
let adjective2 = "large";
let noun2 = "sheep";

let firstStory;

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 = "dangerous";
noun = "bird";
verb = "eating";
place = "nest";
adjective2 = "humongous";
noun2 = "nuts";

let secondStory;

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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/151.0.0.0 Safari/537.36

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

Welcome back, @Lammydj,

Please try writing that without the brackets…those are just used to designate a variable.

Happy coding

let adjective = “huge”;

let noun = “dragon”;

let verb = “breathing”;

let place = “cave”;

let adjective2 = “large”;

let noun2 = “sheep”;

let firstStory;

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 = “dangerous”;

noun = “bird”;

verb = “eating”;

place = “nest”;

adjective2 = “humongous”;

noun2 = “nuts”;

let secondStory;

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);

I’ve done that and I still get the same message.

Please remove the space after the colon.

In the future, please follow these instructions to post your formatted code:

There are two ways you can format your code to make it easier to read and test:

  1. After you copy/paste your code into the editor, select it by dragging your cursor over it then click the (</>) button in the toolbar to automatically wrap your code in backticks. (You can click on the animated demo image below to enlarge it.)

  1. Manually add three backticks on a new line above your code and on a new line after your code. Note that a backtick is NOT the same as a single quote('). To find the backtick key on your keyboard, see this post.

To see changes to your post as you make them, you can click the (M+) button on the toolbar to bring up the rich text editor:

Thank you! I understand now. It worked.

also please initialize the story on the same line you declare it

Okay, I will take notice of that