Build a Sentence Maker - Build a Sentence Maker

Tell us what’s happening:

There is extra space or some issue with firstStory and secondStory variables data. I cannot find it. I have checked and double checked plenty of times. All my variables are corectly declared and assigned values to. Can someone please tell me where the problem is. I’ve been trying for the last day but couldn’t fix it.

Your code so far

let adjective = "beautiful";
let noun = "wife";
let verb = "kissed";
let place = "house";
let adjective2 = "charming";
let noun2 = "Litchis"; 
const firstStory ="Once upon a time, there was a "
+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 = "beautiful";
noun = "husband";
verb = "hug";
place = "room";
adjective2 = "lovely";
noun2 = "oranges"; 
const secondStory = "As a happily married husband, I have a " + adjective + " " + noun + " that loves so much to eat " + noun2 + ". My " + noun + " Lives with me near " + place + " and she has a " + adjective2 + " smile and whenever i see her I like to " + verb + " her.";
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/131.0.0.0 Safari/537.36

Challenge Information:

Build a Sentence Maker - Build a Sentence Maker

You have to use the exact story template, this includes using a(n) and not a (yes, a(n) just as it shows).

2 Likes

You were right. Thanks a lot.
I inadvertantly tought that ( a) / (an) were optional and I did the mistake to take my assumption for granted.

1 Like