Implicit vs Explicit JS Conditionals

Benchmark created on


Setup

var abc = null;

Test runner

Ready to run.

Testing in
TestOps/sec
Implicit
if (!abc) { console.log("X"); }
ready
Explicit
if (abc !== null) { console.log("Y"); }
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.