Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript JavaScript Basics (Retired) Storing and Tracking Information with Variables The Variable Challenge

Nate Luzod
Nate Luzod
6,707 Points

My humble attempt.

var adj1 = prompt("Please type an adjective.");
var noun1 = prompt("Please type a noun.");
var verb1 = prompt("Please type a verb.");
var noun2 =prompt("Please type another noun.");
var adj2 = prompt("Please type another adjective.");
var verb2 = prompt("Please type another verb. -- This is going to be fun, I promise.");
alert("Okay, thanks. Ready for what's next?");
var story = "There once was a " + adj1 + " " + noun1 + " who felt like " + verb1 + " for days on end. ";
story += "Then he met a " + noun2 + " who was insanely " + adj2 + ", and wouldn't stop " + verb2 + ".";
document.write(story);
alert("See, wasn't that fun?");

I hope it lives up to the challenge!

2 Answers

You did Great. That is how I did it.