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

Yu-Chien Huang
PLUS
Yu-Chien Huang
Courses Plus Student 16,672 Points

prompt() is not supported by ATOM???? what i can do?

Thats what i got from the sources from developer tools // But we do not support prompt(). window.prompt = function () { throw new Error('prompt() is and will not be supported.')

Miguel Betancourt
Miguel Betancourt
1,465 Points

The function prompt is supported by atom.

2 Answers

Steven Parker
Steven Parker
231,271 Points

I found this discussion that includes some references to modules people have created to simulate that functionality. Perhaps one of those would work for you.

Otherwise, you might want to use a different development environment for the part of the course that uses prompt, alert, or confirm. The workspaces are handy and intended for that purpose.

Here is an example of a module that people have come up with in response to alert(), prompt(), confirm() functions not working on Atom. I'm sure there's more out there, but in all honesty, I would just use the Treehouse workspaces, or utilize another text editor such as Visual Studio Code (my personal favorite), or Brackets.

https://github.com/coderaiser/smalltalk