Im studying javascript and can\'t figure it out why this line returns false:
(true + false) > 2 + true
The reason is called type coercion; You're using two boolean values in an arithmetic operation which is not feasible unless the interpreter converts them into numbers first.
true --> 1 false --> 0
Try it yourself; type +true and you will get 1;