Build a Sentence Maker - Build a Sentence Maker

Tell us what’s happening:

I do not know what is the issue with firstStory at all

Your code so far

let noun = "squirrel", verb = "raging", adjective = "cute", adjective2 = "large", place = "tree", noun2 = "nuts";
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);
noun = "crab", verb = "furious", place = "pond", adjective2 = "immense", noun2 = "insects", adjective = "large";
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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36

Challenge Information:

Build a Sentence Maker - Build a Sentence Maker

please use one let for each variable

I used now, but still the tests are not successfully running

share your updated code please

let noun = “squirrel”, verb = “raging”, adjective = “cute”, adjective2 = “large”, place = “tree”, noun2 = “nuts”;

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

noun = “crab”, verb = “furious”, place = “pond”, adjective2 = “immense”, noun2 = “insects”, adjective = “large”;

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 are still not using one let for each variable

Using now still useless.

let noun = "squirrel";let verb = "raging";let adjective = "cute";let adjective2 = "large";let place = "tree";let noun2 = "nuts";

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

noun = "crab", verb = "furious", place = "pond", adjective2 = "immense", noun2 = "insects", adjective = "large";

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

Hey there,

Are you sure about using , when assigning values to a variable?
Also make sure you are using " ", not “ ”.
Good luck!

I’ve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

Forum changes those quotes when code isn’t formatted as code. It can be really confusing once that starts and the wrong quotes start getting pasted back into the code…

Yeah I always wondered how those quotes end up there. It’s pretty confusing at times. Glad you pointed that out :grin:

1 Like