Web browser or IDE for interpreting JavaScript?

Is it better to use the interpreter built in a web browser, or an IDE, for running my JavaScript code?
Thanks in advance.

3 posts were merged into an existing topic: What is Best IDE to learn java script?