const assert = require('assert');
// These will pass
assert.notEqual(1, 2);
assert.notStrictEqual('1', 1);
try {
// This will throw an error
assert.notEqual(1, '1', '1 is coercively equal to "1"');
} catch (err) {
console.error(`Error: ${err.message}`);
}
try {
// This will throw an error
assert.notStrictEqual(1, 1, '1 is strictly equal to 1');
} catch (err) {
console.error(`Error: ${err.message}`);
}
Error: 1 is coercively equal to "1" Error: 1 is strictly equal to 1