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

This is my code before watching the answer video!

I figured I would add the extra shout element we learned from the previous videos as well. I think this will be correct! But is there an easier way to write this code or is this as simplified as it gets?

var verb = prompt("Please enter a verb!")
var noun = prompt("Please enter a noun!")
var adjective = prompt("Please enter an adjective!")
var message = alert("You are done!  Ready for your story?!")
var story = ("There once was a " + adjective + " kid who did not like to " + verb + " because he always had a " + noun)
document.write(story.toUpperCase())
Dave McFarland
Dave McFarland
Treehouse Teacher

Hi derrick johnson

To put code into a forum post use triple back ticks -- ``` — around the code. I fixed your code here, but in the future here's a forum discussion that describes how to add HTML, CSS, JavaScript or other code to the forum: https://teamtreehouse.com/forum/posting-code-to-the-forum

Hey derrick johnson,

That is a cool little story you got! That is the easiest way to do what you're doing except that you can leave those parenthesis off that are surrounding the story variable's contents. It looks good!