Build a Sentence Make: Build a Sentence Maker

Now I’m just confused, the errors I got where,

“ // running tests
14. You should use the correct story format for the first story: “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].”. Pay attention to spaces.
16. You should log your first story using the message “First story: [firstStory]”.
24. You should use the correct story format for the second story: “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].”. Pay attention to spaces.
25. You should assemble your second story using the variables you declared in the correct order.
26. You should log your second story using the format “Second story: [secondStory]”.
// tests completed
// console output
First story: Once upon a time, there was a black chicken who loved to eat cheerios. The chicken lived in a chick fil a and had green nosttrils that blew fire when it was running.
Second story: Once upon a time, there was a white peacock that loved eating at KFC. It had a red face covered with suncream. “

I used the console.log(‘text here’ + variable + ‘texthere’); method but it still seems to not work, I might just not see the problem.

let adjective = 'black';
let noun = 'chicken';
let verb = 'running';
let place = 'chick fil a';
let adjective2 = 'green';
let noun2 = 'cheerios';

let firstStory = 'Once upon a time, there was a ' + adjective + ' ' + noun + ' who loved to eat ' + noun2 + '. The ' + noun + ' lived in a ' + place + ' and had ' + adjective2 + ' nosttrils that blew fire when it was ' + verb + '.';

console.log('First story:', firstStory);

adjective = 'white';
noun = 'peacock';
verb = 'eating';
place = 'KFC';
adjective2 = 'red';
noun2 = 'suncream';

let secondStory = 'Once upon a time, there was a ' + adjective + ' ' + noun + ' that loved ' + verb + ' at ' + place + '. It had a ' + adjective2 + ' face covered with ' + noun2 + '.';

console.log('Second story:', secondStory);

Hi @JerbearGo,

Without knowing what step you are on, it’s harder for us to help. You should use the Get Help option to post your questions.

Can you please copy and paste the URL here for this step?

Thank you, I did find out my problem though, I misspelled nostrils, and I didn’t know I was supposed to us that same format for story 2.

1 Like

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