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 Introduction to Programming Basics Getting Started

How 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
Dave McFarland
Treehouse Teacher

The method is called prompt(). You can use it like this:

var visitorName = prompt('What is your name?');

Just judging from your question, are you spelling 'prompt' correctly?

Copy and paste your code here and lets check that stuff out!