function divide(a, b) {
console.assert(b !== 0, 'Divisor cannot be zero')
return a / b
}Embed console.assert() in functions to catch invalid arguments early.
console.table(data) formats and logs data in a table format.
Challenge: Verify that console.table is a function.