google-chrome-devtools console.assert()


Example

Place assertions in your JavaScript code by calling console.assert() with the error condition as the first parameter. When this expression evaluates to false, you will see a corresponding console record:console.assert() example