Debugging with Console & DevTools

Which console method would log the full error object with its stack trace?
try {
  riskyOperation();
} catch (error) {
  console.error('Operation failed:', error);
  // Should we log the stack trace too?
}
Next Question (19/40)