var obj = {
a: "value",
b: false
};
// nonexistent properties
console.log(!!obj.nonexistent);
// existing properties
console.log( !! obj.a);
i don't know the meaning of !!
.
console.log(obj.nonexistent); -> undefined
I can understand this.
console.log(!obj.nonexistent); -> true
i cann't understand this.?????????
console.log( !! obj.a);
i cann't understand this.?????????