Skip to content

Instantly share code, notes, and snippets.

@vmussak
Created Jan 23, 2018
Embed
What would you like to do?
let a = new Boolean([].length);
let b = new Boolean(0);
let c = new Boolean(false);
let d = new Boolean(null);
let e = new Boolean(undefined);
let f = new Boolean(NaN);
console.log(a, b, c, d, e, f);
//[Boolean: false] [Boolean: false] [Boolean: false] [Boolean: false] [Boolean: false] [Boolean: false]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment