MENU
Boolean Prototype Methods
The Boolean object has the overridable prototype methods toString() and valueOf(). The former is called when the object is treated as a string, while the latter is called when the object is treated as one of the other primitives.
RESETRUNFULL
<!DOCTYPE html><html><body><script>
console.log((true)+"X"); // trueXconsole.log((true)+0); // 1
</script></body><html>