Build a Sentence Maker - Build a Sentence Maker

Tell us what’s happening:

I have done about everything that I can think of to compare the desired output with my output and I don’t see any difference, and neither does chatGPT or multiple text compare apps.

Your code so far

let adjective = "funny", noun = "pencil", verb = "throwing", place = "canada", adjective2 = "fugly", noun2 = "lamp";

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

adjective = "ugly", noun = "not Wisconsin", verb = "not eating", place = "Your Dad's House", adjective2 = "Not Voluptous", noun2 = "Hens";

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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.3 Safari/605.1.15

Challenge Information:

Build a Sentence Maker - Build a Sentence Maker

Hi there. You have declared all variable with just only one declaration keyword let and assigned value to each variable by separate it with a comma.
It’s not the correct way to declare variables. You need to declare each variable with it’s own declaration keyword eg. let separately and assign required value to it.

You can declare multiple variables using the let/var/const on the same line, also that’s not the problem the output is the problem, the variables work perfectly fine.

It’s technically correct and you can do that, however the test in this case is overly strict and not expecting this. You’ll need to change this purely for the test.

It could be that the test is too strict or the instructions not clear enough and something needs to be tweaked.

Open issue for context.

1 Like