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