Show alert messages in firebug

By: Johnathon Wright on: October 26, 2009

A cool javascript trick:


alert = console.log

then


alert('hello')

will show up in Firebug instead of an alert screen:


"hello"





Comments:

Just checking that you are human. What would be the result of this code?

a = 3*(4/2); b = 1; a+b

Back