javascript log errors to console code example Example: console log error javascript console.error("Error!")