false + true in js code example
Example 1: change true to false js
var thing = true; //try changing this to false
thing = !thing; //the variable will go from true to false, or from false to true
Example 2: true + true javascript
//booleans are converted to numbers before addition takes place
console.log(true + true); // 2