when useing let variables in a string sentance and the variables ar in how do you get them to work with console.log
Your code so far
let adjective = "very big"
let noun = "dragon"
let verb = "mad"
let place = "cave"
let adjective2 = "big"
let noun2 = "Berrys"
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(firstStory);
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 Edg/141.0.0.0
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” ++ “nostrils that blew fire when it was” +verb+.;
"Once upon a time, there was a(n)"+ adjective + noun + "who loved to eat" + noun2 +"." "The" + noun + "lived in a" + place + "and had" + "nostrils that blew fire when it was" + verb +".";
what about here? don’t the adjective and noun also deserve a space between them? you can also look at the sentence printed in the console to double check