Build a Sentence Maker - Build a Sentence Maker

Tell us what’s happening:

Hello,
I am one of the people who is having a lot of trouble with the story template steps, it refuses to approve the output using the templates, even though I have followed the template to the letter, I paid close attention to spaces, and what is written. What am I doing wrong?

Your code so far

let adjective = "Silly"
let noun = " Pig"
let verb = " Sleeping"
let place = "farm"
let adjective2 = "Big"
let noun2 = "Apples"
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 = "Mean";
noun = " Dragon";
verb = " Running";
place = "Cave";
adjective2 = "Green";
noun2 = " Knights";
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/145.0.0.0 Safari/537.36 Edg/145.0.0.0

Challenge Information:

Build a Sentence Maker - Build a Sentence Maker

To be clear, I am referring to steps 14 and 24, the rest works just fine

OK! So I managed to fix it!

I had put spaces in some of my variables, which looked good in the output, but was not the way to space my text! :smiley:

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