创建句子生成器 - 创建一个句子生成器

告诉我们发生了什么:

I’m not sure what’s wrong with the first and second story templates. The tests keep failing, and I’ve already revised them many times. Please help me.

let adjective = "good";
let noun = "cake";
let verb = "look";
let place = "home";
let adjective2 = "beautiful";
let noun2 = "apple";

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 + " nostrils that blew fire when it was " + verb + ".";
console.log("First story: " + firstStory);

adjective = "nice";
noun = "pastry";
verb = "see";
place = "house";
adjective2 = "pretty";
noun2 = "peach";

let secondStory = "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("Second story: " + secondStory);

你的浏览器信息:

用户代理是:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/152.0.0.0 Safari/537.36 Edg/152.0.0.0

挑战信息:

创建句子生成器 - 创建一个句子生成器

GitHub 链接: i18n-curriculum/curriculum/challenges/chinese/blocks/lab-sentence-maker/66c057041df6394ca796bf33.md at main · freeCodeCamp/i18n-curriculum · GitHub

Welcome to the forum @ritasun,

"Once upon a time, there was a(n)

Is this exact text in your stories?

Happy coding