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