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 Solution

So I did this a tad differently.

https://w.trhou.se/i9oxal9x1f

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