Last active
November 16, 2021 04:55
-
-
Save xenioushk/6acaf1dc4578afc96f512d7f2709eec7 to your computer and use it in GitHub Desktop.
Browser console.assert() example
This file contains hidden or 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
| let a = 3; | |
| let b = 4; | |
| console.assert(a == b, { | |
| a: a, | |
| b: b, | |
| errorMsg: a + " is not equal to " + b | |
| }) | |
| // More examples: | |
| // https://developer.mozilla.org/en-US/docs/Web/API/console/assert |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment