I am trying to log the message in the console but it keeps saying that I need to put it in a certain format, what format is that
Your code so far
let adjective = 'smarter';
let noun = 'boy';
let verb = 'open';
let place = 'village';
let adjective2 = 'strong';
let noun2 = 'ice cream';
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 = 'beautiful';
noun = 'girl';
verb = 'lifted';
place = 'city';
adjective2 = 'big';
noun2 = 'bread';
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);
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36
it’s this format here provided in the user stories:
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].
but also do we add space li + “ “ or after and before a string one ca do like “ he lived ”, because i tried both and things are not working out, i have been on this for more than an hour
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 = ‘cute’;
noun = ‘girl’;
verb = ‘lifted’;
place = ‘city’;
adjective2 = ‘high’;
noun2 = ‘chocolate’;
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 + “.”
there is the updated code that has failed to work, please help me i am stuck here
Your code so far
let adjective = 'smarter';
let noun = 'boy';
let verb = 'open';
let place = 'village';
let adjective2 = 'strong';
let noun2 = 'ice cream';
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 = 'cute';
noun = 'girl';
verb = 'lifted';
place = 'city';
adjective2 = 'high';
noun2 = 'chocolate';
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)
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36