Skip to content

Instantly share code, notes, and snippets.

@xenioushk
Last active November 16, 2021 04:55
Show Gist options
  • Save xenioushk/6acaf1dc4578afc96f512d7f2709eec7 to your computer and use it in GitHub Desktop.
Save xenioushk/6acaf1dc4578afc96f512d7f2709eec7 to your computer and use it in GitHub Desktop.

Revisions

  1. xenioushk revised this gist Nov 16, 2021. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -4,4 +4,7 @@
    a: a,
    b: b,
    errorMsg: a + " is not equal to " + b
    })
    })

    // More examples:
    // https://developer.mozilla.org/en-US/docs/Web/API/console/assert
  2. xenioushk created this gist Nov 16, 2021.
    7 changes: 7 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    let a = 3;
    let b = 4;
    console.assert(a == b, {
    a: a,
    b: b,
    errorMsg: a + " is not equal to " + b
    })