32 ms·
I think this is what you're looking for. 3rd result for "Javascript type coercion": https://2ality.com/2019/10/type-coercion.html https://2ality.com/2019/10/typ
by tomlagier 6y ago
I think this is what you're looking for. 3rd result for "Javascript type coercion": https://2ality.com/2019/10/type-coercion.html https://2ality.com/2019/10/type-coercion.html
- nottorp 6y agoSorry, I'm looking for a comprehensive manual, not a series of random blog posts. I knew about type coercion because everyone laughs at it, but what about the things I don't know to ask about because I don't know they exist?
- tomlagier 6y agoDid you... read the link? It's literally exactly what you're asking for. Sorry for trying to help I guess, good luck.
- nottorp 6y agoI did. It explains type coercion. It’s not a comprehensive JavaScript manual.
- tomlagier 6y ago> So what types are converted to what, automatically? And is it only for == or there are other traps? This is the question that you asked and that I answered. If you're looking for the language specification, it's here (first result for "Javascript specification"): https://www.ecma-international.org/ecma-262/11.0/index.html#sec-intro https://www.ecma-international.org/ecma-262/11.0/index.html#...