Complete the Console Method
Fill in the Blank Beginner
Question
Fill in the blank to log an error message to the console.
Code
console.___("Something went wrong");
Hint
It is named after the severity level — the most serious one.
Explanation
console.error() logs a message at the error level, typically displayed in red in the browser console. Other levels include console.log (general), console.warn (warning), and console.info (informational). Using the right level helps filter messages in DevTools.
Related Resources
Related Lessons
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.