javascript cast to int instead of boolean code example Example: javascript cast bool to int + true; // 1 + false; // 0