Get firebug here!
Start firebug (icon or menu) & click on "Console" tab. (log, debug, info, warn, error, assert, dir, profile)
Click on red triangle icon (lower right) to switch between single line mode & command editor textbox.
Enter code in the textbox and hit "run" to execute.