console: assert() method
assert writes an error message to the console if the assertion is false. If the assertion is true, nothing happens.
Syntax
Parameters
assertion
Any boolean expression. If the assertion is false, a generic message indicating assertion failure is written to the console.
val1, val2, ...
A list of JavaScript values to output.
return value
None(undefined).
Compatibility
LCD tables only load in the browser