JSFiddle - React, Tailwind, and code Playground

by Steven Senkus

JavaScript

function assert(message, expr) {
    if (!expr) {
        throw new Error(message);
    }
    assert.count++;
    console.log(assert.count);
    return true;
    
}
assert.count=0;
assert("1 === 1", 1 === 1);
assert("1 === 2", 1 === 2);
/* never gets here */
assert("1 === 3", 1 === 3);