Tell us what’s happening:
My second sentence cleared the test, but the first one just won’t go through.
I’ve tried virtually everything. I replaced the first sentence with the second sentence, I replaced all the variables, I quadruple checked all of the spaces and periods, I even asked AI. I just don’t get it.
Why would the first one fail while the second sentence passed, if they’re using exactly the same structure (I know they are, I pasted the 2nd one over the 1st sentence).
Your code so far
let adjective = ('large');
let noun = ('Hydra');
let verb = ('defeated');
let place = 'room';
let adjective2 = 'bright';
let noun2 = 'chicken';
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 = ('big');
noun =('Dragon');
verb = ('slayed');
place = ('layer');
adjective2 = ('terrible');
noun2 =('Hero');
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/143.0.0.0 Safari/537.36
Challenge Information:
Build a Sentence Maker - Build a Sentence Maker