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

Tommaso Bufano
Tommaso Bufano
13,821 Points

At 4:00, after he closes the alert box, the console returns "undefined". I don't understand why it did that?

It seems like it returned the value. Why did just the simple act of closing the alert box do something? Why didn't it just keep the value that was returned in the first place?

1 Answer

What course, video, and challenge are you referencing?