Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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

So I did this a tad differently.


I got frustrated with the orginal directions and did this thinking it may be a tad easier

i put this in the prompt box"Oh gosh! I am so sorry!"

1 Answer

In fact in this exercise, you have to use prompt to get data from an hypothetical user, store it in a variable like you did and then manipulate the DOM to display it.

In pseudo-code it would something like

// get the data from the user (i.e. prompt) // store it into variable //manipulate DOM