Assert
console.assert()
can be used to test whether expressions are true or false.
It takes two parameters: the expression and the message to display. The message will only be shown in the console if the expression is FALSE.
For example, console.assert(!true, 'This is not true');
will output 'This is not true' to the console.While console.assert(true, 'This is not true');
will not output anything to the console.