МУ
Size: a a a
МУ
МУ
МУ
МУ
So to answer your question, Console API in FF calls toString() on the argument only if the argument type is not one of {undefined,null,object,set,map} types. It doesn't always call toString() or valueOf() methods. I didn't check the implementation of Chrome, so I won't comment on that.
МУ
f.toString = function () {
return currentSum;
};
МУ
МУ
МУ
МУ
KB
KB
KB
МУ
P
<span>Мне нужно через JS прописать стили для div.position в зависимости от классов внутри (и я не могу присваивать новые классы в html).
<div class="position">
<div class="tab pinned"></div>
</div>
</span>
<span>
<div class="position">
<div class="tab"></div>
</div>
</span>
<span>
<div class="position">
<div class="tab"></div>
</div>
</span>
<span>
<div class="position">
<div class="tab"></div>
</div>
</span>
r
r
СЛ
KS