Build a Sentence Maker - Build a Sentence Maker

Tell us what’s happening:

// running tests
16. You should log your first story using the message “First story: [firstStory]”.
26. You should log your second story using the format “Second story: [secondStory]”.
// tests completed

Your code so far

let adjective = "person",
  noun = "mr.mani",
  verb = "cold",
  place = "bgk",
  adjective2 = "fan",
  noun2 = "mango";

const 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 = "man";
noun = "mr.moni";
verb = "hot";
place = "blr";
adjective2 = "AC";
noun2 = "watermelon";

const 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/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36

Challenge Information:

Build a Sentence Maker - Build a Sentence Maker

Welcome to the forum @mr_Mani

Please Tell us what’s happening in your own words.

Learning to describe problems is hard, but it is an important part of learning how to code.

Try removing the white space before the round brace.

Happy coding

Thanks for correcting, sure i’ll start describing the issue.

1 Like