Build a Sentence Maker - Build a Sentence Maker

Tell us what’s happening:

I have worked on the spacing for the first story sentence multiple times and still it is not accepting its correct in spacing at all. ive moved, “”, +, and wording but still denying it even though the sentence looks correct in the log! Plz Help

Your code so far

let adjective
adjective =("big")
let noun
noun =(" bot")
let verb
verb = ("boiled")
let place
place = ("world")
let adjective2
adjective2 = ("fat")
let noun2
noun2 = ("food");

let firstStory;
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(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

Challenge Information:

Build a Sentence Maker - Build a Sentence Maker

Welcome to the forum @ColbsTheQueso

Try removing the space from the noun variable.

Also, remove the braces from the variable declarations.

Note, you can declare and intialise the variables on the same line.

Happy coding

1 Like

Hello, thank you for the advice, still seems to be giving me issues, i removed the space before the first noun in the sentence, and added a space on the second cause it was connecting with (“. The”), I didnt know you can use the Let command for one line of code i just dont know how to type that out specifically or correctly. But yes still having issues with my spacing for some reason on the line of code for the sentence.

Please post your update code.

1 Like