Why an `alert` instead of a `console.log`?