JavaScript Console Methods
The console.assert() method writes a message to the console, but only if an expression evaluates to false.
Programming Blog
The console.assert() method writes a message to the console, but only if an expression evaluates to false.