Build a Sentence Maker - Build a Sentence Maker

Tell us what’s happening:

i have done the test my given instructions but i still could not complete the test

Your code so far

let adjective;
let noun;
let verb;
let place;
let adjective2;
let noun2;

// First values
adjective = "brave";
noun = "dragon";
verb = "angry";
place = "cave";
adjective2 = "fiery";
noun2 = "marshmallows";

// First story
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);

// 🔴 CLEAR REASSIGNMENT 
adjective = "sleepy";
noun = "bear";
verb = "snoring";
place = "forest";
adjective2 = "huge";
noun2 = "honey";

// Second story
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/144.0.0.0 Safari/537.36 Edg/144.0.0.0

Challenge Information:

Build a Sentence Maker - Build a Sentence Maker

What did you do to investigate?

Does your output look ok?

What happens?

Try putting your story assignments all on one line

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.