
console.log() prints output to the browser's developer console. It is the most essential debugging tool in JavaScript. Open the console with F12 in Chrome. Use it constantly to check the value of variables, test logic, and understand what your code is doing at any point in execution.
Reference:
TaskLoco™ — The Sticky Note GOAT