There are four main ways:

A Window.alert is the easiest but also the most annoying. It has the advantage however of not disrupting the screen layout. Perhaps some day someone will do something really sophisticated, like provide a "logger" module which throws up a nice separate window.