You perform a QUnit test with the following syntactical options.
Which call returns true when you execute it?
assert.strictEqual(0, null, "true");
assert.strictEqual(0, "", "true");
assert.strictEqual(0, -0, "true");
assert.strictEqual(0, "0", "true");
assert.strictEqual() checks bothvalue and typeusingstrict equality (===)in JavaScript.
0 === -0 →true
Others fail due to type mismatch or value mismatch.
QUnit API Reference:
“Use strictEqual for strict equality. It compares both value and type.”
Submit