Js The Weird Parts __hot__ Page

const bound = showThis.bind("hello"); bound(); // String {"hello"}

const obj = { showThis: showThis }; obj.showThis(); // obj js the weird parts

console.log(1 + "1"); // "11" (string) console.log(1 - "1"); // 0 (number) Why? Because + is overloaded. If either operand is a string, it prefers string concatenation. But - doesn’t have a string version, so it coerces everything to numbers. Fun, right? const bound = showThis