7 lines
116 B
JavaScript
7 lines
116 B
JavaScript
function assert(x) { if (!x) throw 1; }
|
|
|
|
try {
|
|
assert(Math.sqrt(9) === 3);
|
|
console.log("PASS");
|
|
} catch {
|
|
}
|