← #34 Show a placeholder for an empty list
#35

Conditional logging in the Console

Topics: DevTools

Use console.assert() to print out something in the Console when a given condition doesn't match.

if (condition) {
// Do something
} else {
console.log('Error message');
}

// Better
console.assert(!condition, 'Error message');

More

Fix a typo or suggest an improvement
#36 Enforce required parameters