I use alert() also but the console is better especially because you see what happens without having to have a dialog box that interrupts the process.
Clik here to view.

I use alert() also but the console is better especially because you see what happens without having to have a dialog box that interrupts the process.