Tell us what’s happening:
let adjective=“big”;
let noun=“elephant”;
let verb=“sleeping”;
let place=“jungle”;
let adjective2=“huge”;
let noun2=“bananas”;
let firstStory=‘Once upon a time, there was an ‘+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+’”’);
my code not working
Your code so far
let adjective="big";
let noun="elephant";
let verb="sleeping";
let place="jungle";
let adjective2="huge";
let noun2="bananas";
//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.
let firstStory='Once upon a time, there was an '+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="small";
noun="cat";
verb="singing";
place="room";
adjective2="tiny";
noun2="biscuit";
let secondStory='Once upon a time, there was an '+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/141.0.0.0 Safari/537.36
Challenge Information:
Build a Sentence Maker - Build a Sentence Maker