Question: what is the difference between alert & console.log?
Answer: alert() stops all interaction with the browser until the message is dismissed while console. log() just prints the message to the console. ... You're printing the values of a bunch of variables to make sure they're right and don't want to dismiss the alert window after each variable.