let adjective = "beautiful"
let noun = "wife"
let verb = "kissed"
let place = "house"
let adjective2 = "charming"
let noun2 = "Litchis"
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 = "wise"
noun = "lady"
verb = "kiss"
place = "upstairs"
adjective2 = "charmin"
noun2 = "litchis"
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)
Hi @zaccheus and welcome to our community!
Did you have a question for us?
I’ve edited your post to improve the readability of the code. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>
) to add backticks around text.
See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').
Would you post the URL to this project, please?
Please let us know what you are struggling with.
Did you need help understanding something?
Also, the link you provided us is for the quiz game lab but your code and title of this post is for the sentence maker.
Did you need help with the quiz lab? If so, please update your code for that lab.
Otherwise, we will need the correct link for the sentence maker lab.
thanks