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

Scott Gregory Jr.
Scott Gregory Jr.
2,073 Points

My version!

This is so easy, I didn't even have to test my program. I'm going to assume it's perfect!

var noun = prompt("Please Enter a Noun");
var verb = prompt("Please Enter a Verb");
var adjective = prompt("Please Enter an Adjective");

var story = "So, I'm supposed to tell you to enter a " + noun + ". ";
story += "Then you put in a " + verb + ". ";
story += "Lastly, the " + adjective + " goes here! ";
story += "Once upon a time there was a noun. ";
story += "It liked to verb. ";
story += "But it was very adjective. ";
story += "Yeah! I did this really well.";

document.write(story);

I'm kidding, of course :).

1 Answer

Nice looking program! The story += is a great addition. I was forgetting I could do that until I popped over here right before starting my own version. Cheers!