Build a Sentence Maker - Build a Sentence Maker

Tell us what’s happening:

I have declared all the variables in correct order but also not passing the test and showing assign all the variable in correct roder please help me

Your code so far

let adjective = "huge";
let noun = "Lion";
let verb = "angry";
let place = "forest";
let adjective2 = "red";
let noun2 = "Tiger";

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 = "big";
noun = "Rhino";
verb = "sleeping";
place = "savanna";
adjective2 = "large";
noun2 = "Grass";

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/143.0.0.0 Safari/537.36

Challenge Information:

Build a Sentence Maker - Build a Sentence Maker

Hi

When I ran your code I noted there were a lot of keyboard returns in your first and second story variables. Remove all those returns so the strings run on one long line and it should pass.

thank you so much i got it

1 Like