Build a Sentence Maker - Build a Sentence Maker

Tell us what’s happening:

Its saying use the correct story format but I swear it’s exactly the same as the format. Specifically number14

Your code so far

let adjective = "fluffy "
let noun = "Frog"
let verb = "annoyed"
let place = "swamp"
let adjective2 = "gaping"
let noun2 = "bugs"
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)

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36 OPR/128.0.0.0

Challenge Information:

Build a Sentence Maker - Build a Sentence Maker

Welcome to the forum @Excrivity !

Your story string should not have any line breaks.

Happy coding!

1 Like

I fixed the line breaks, but it’s still giving me an error

Please post your updated code.

let adjective = "fluffy "

let noun = “Frog”

let verb = “annoyed”

let place = “swamp”

let adjective2 = “gaping”

let noun2 = “bugs”

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)

What does that look like in the console? Is the spacing okay?

It looks like this in the console

First story: Once upon a time, there was a(n) fluffy Frog who loved to eat bugs. The Frog lived in a swamp and had gaping nostrils that blew fire when it was annoyed.

Okay, I see the issue.

You cannot handle spacing in your variable values. Handle spacing in your concatenation.

1 Like