What are the differences between using condition, coercion and Boolean conversion in checking a number type for greater than zero (0)?
Each will give the same output
var zero = 0;
var three = 3;
// condition
zero > 0 //false
three > 0 //true
null > 0 //false
// coercion
zero ? true : false; //false
three ? true : false; //true
null ? true : false; //false
// Boolean conversion
Boolean(zero); //false
Boolean(three); //true
Boolean(null); //false
What is the difference between these operations? (In terms of speed/performance, principles, practices, etc.)