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 trialKeith Kozelisky
233 PointsHow do I define promt? When I try to replicate the video i just keep being told, ReferenceError: promt is not defined
I'm just trying to replicate the video and having no luck. Is it possibly my version of Chrome?
3 Answers
Dave McFarland
Treehouse TeacherThe method is called prompt()
. You can use it like this:
var visitorName = prompt('What is your name?');
alvsov
8,462 PointsJust judging from your question, are you spelling 'prompt' correctly?
eck
43,038 PointsCopy and paste your code here and lets check that stuff out!