Execute JavaScript on the fly with Firebug
You can use Firebug to write and execute a JavaScript in real time. This is a good way to test and make sure that the script is working properly before you deploy it in a production environment.
Open Firebug and write a code as shown. Press enter. Immediately you will see the output of the code.
execute-javascript-on-the-flyPrevious: Profile JavaScript performance with Firebug
Next:
Logging on JavaScript using Firebug