Format console output for clarity:
// String substitution
console.log("User %s has %d items", "Alice", 5);
// Styled output
console.log("%cStyled text", "color: blue; font-size: 20px");
// Object inspection
console.dir(element);
// In Node.js: console.dir(obj, { depth: 2 })
Clear formatting helps when debugging complex data.