logo

算数

"11" + 1    // '111'
"11" - 1    // 10

true + true // 2
true + 2    // 3

Number + Number -> addition Boolean + Number -> addition Boolean + Boolean -> addition String + Number -> concatenation String + Boolean -> concatenation String + String -> concatenation