console assert
Console assert takes two attributes. If the first attribute is evaluated as false it will log a message passed as the second attribute.
console.assert(false, "Message to log.");
copy