Build a Sentence Maker - Build a Sentence Maker

Tell us what’s happening:

Hi, there! I can´t find fix the issue.I need help, please.

issue: 15. You should assemble your first story using the variables you declared…

let adjective = “cute”,
noun = “Milan”,
verb = “flying”,
place = “treehouse”,
adjective2 = “small”,
noun2 = “cookies”;

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
  • “.”;

Your code so far

let adjective = "cute",
noun = "Milan",
verb = "flying",
place = "treehouse",
adjective2 = "small",
noun2 = "cookies";

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
+ ".";

// issue: 15. You should assemble your first story using the variables you declared in the correct order.

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

adjective = "angry";
noun = "Miriam";
noun2 = "Snickers";
place = "Landhaus";
adjective2 = "normal";
verb = "getting angry";

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
+ ".";

// issue: 25. You should assemble your second story using the variables you declared in the correct order.

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/141.0.0.0 Safari/537.36 Edg/141.0.0.0

Challenge Information:

Build a Sentence Maker - Build a Sentence Maker

do not go to a new line inside building the stories, that would help the tests in verify your code

1 Like

Thank you very much :folded_hands: