Build a Sentence Maker - Build a Sentence Maker

Tell us what’s happening:

I am stuck; I need help people!

I am having challenge passing the user stories no. 15 and 24 and it’s all about using a specified message for the console.log

Your code so far

let adjective = "huge";
let noun = "dragon";
let verb = "sleeping";
let place = "cave";
let adjective2 = "big";
let noun2 = "big apes";

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 = "small";
noun = "bunny";
verb = "pushed to anger";
place = "hole";
adjective2 = "pretty small";
noun2 = "carrot";

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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36

Challenge Information:

Build a Sentence Maker - Build a Sentence Maker

why are you adding your story in an array?

I didn’t initially until I checked why I couldn’t pass the user stories and tried doing as specified therein. Regardless, I will change that as you’ve pointed at let’s see what happens.

I have found out the solution:

THIS DOESN’T WORK!
Using the concatenation and empty quotation(empty string) to create space after the title doesn’t work. For example:

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

THIS WORKS!
What works is creating the space right after the colon in the title without the empty string. For example:

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