Last active
August 26, 2022 07:51
-
-
Save Rudxain/43aa9dcebc434c61e3b0353bbfb4e65d to your computer and use it in GitHub Desktop.
How to assert dominance in Javascript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
const assert = function(bool, msg) {if (!bool) throw new Error(msg)} | |
let dominance = true | |
assert(dominance, 'dominance not asserted') | |
//I'm so based that I purposefully ignored `console.assert` | |
console.log('dominance successfully asserted lol') | |
dominance = false //dominance doesn't last forever |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment