Build a Sentence Maker - Build a Sentence Maker

Tell us what’s happening:

You should assemble your first story using the variables you declared in the correct order.

Your code so far

let adjective = "funny";
let noun = "dragon";
let verb = "running";
let place = "cave";
let adjective2 = "big";
let noun2 = "pizza";

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 = "scary";
noun = "goblin";
verb = "sleeping";
place = "forest";
adjective2 = "tiny";
noun2 = "berries";

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

Challenge Information:

Build a Sentence Maker - Build a Sentence Maker

1 Like

The string assembly for both stories should be written in one line without any line breaks or indentation to pass the test requirements.

1 Like

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