// true, false가 '값'으로 변환된다. (false = 0, true =1)
console.log(66 + true); // 67
console.log(66 + false); // 66

// loaded operator: 숫자가 문자열에 붙어, string 덩어리가 된다. 
console.log(66 + "hello"); // "66hello"
console.log("hello"+66); // "hello66"
console.log(10 + 66 + "false"); // "76false"
// all false
console.log(0 == true); 
console.log("" == true);
console.log(undefined == true);
console.log(null == true);
console.log(NaN == true);
console.log(1 == true); // true : 타입 변환이 일어남
console.log(1 === true); // false : 타입 변환이 일어나지 않음

// string인 "1"은, 타입 변환으로 number type인 1이 되려 한다.
console.log("1" == 1); // true : 타입 변환이 일어남
console.log("1" === 1); // false : 타입 변환이 일어나지 않음

// string인 "true"은, 타입 변환으로 number type이 되려 하지만, 불가능함
console.log("true" == true); // false : "true"라는 문자열은 number type이 되지 못함