Better to use `console.error` perhaps... really in reality we'd use an actually logging framework, console doesn't suffice... not sure if you want to do that for the book tho.