Updated the alert and console.log