This function only works inside of the editor. In a published game, it will silently do nothing.

alert( output )

This function is similar to console, but instead displays a JavaScript alert panel, showing the output to display.

An advantage this alert has is that you have the option to select to 'cancel', which will stop further processing in the game.