• Чем отличаются Javascript и ECMAscript?

    @w_serj
    Если ядро javascript полностью соответствует ECMAscript, то объясните почему
    true === ('0' == false).
    Хотя в стандарте ECMA-262 5.1 june 2011 пункт 11.9.3 подпункт d сказано -
    d. If Type(x) is String, then return true if x and y are exactly the same sequence of characters (same
    length and same characters in corresponding positions). Otherwise, return false.

    Знаю что у мозиллы написано совсем другое.
    Equal (==)

    If the two operands are not of the same type, JavaScript converts the operands then applies strict comparison. If either operand is a number or a boolean, the operands are converted to numbers if possible; else if either operand is a string, the other operand is converted to a string if possible. If both operands are objects, then JavaScript compares internal references which are equal when operands refer to the same object in memory.

    (From Comparison Operators in Mozilla Developer Network)


    Но кто в этом случае прав? И много ли еще подобных нюансов (если возможно с примерами)?
    Chrome и firefox следуют указаниям мозиллы.
    ---
    Вопрос снят. Буду внимательнее читать.
    Ответ написан