alert/console

printed result to an alert and to the console.