#567 TML Comment 567 @ lolkittens -typeof []+[] === "object" becausetypeof [] === "object" and"object" + [] === "object"; what you probably wanted to be evaluating istypeof([]+[]), which most definitely IS "string"; in other words, the keywordtypeof has higher precedence than+, so you were evaluating(typeof [])+[]. url:Javascript: the weird parts 2014-08-30
@ lolkittens -
because and ; what you probably wanted to be evaluating is , which most definitely IS "string"; in other words, the keyword has higher precedence than , so you were evaluating .