Using console.log and alert