context :
the starting point is a simple question i asked myself :
why typeof '' === typeof "" === typeof ``
is false ? Shortly after, i found the answer but that lead me to the subject of precedence and associativity.
MDN gives us the table : precedence order (here) and associativity for JavaScript. But i'm not sur on which source MDN based his table. So i started to search : firstly i read the specification from ECMA website, but did not find any reference to associativity or precedence. (ES 8, Javascript 1.0 (it's a pdf))
So i search on StackOverflow for answered questions and found some but most of all are pointing to MDN table. One of those questions lead me to esdiscuss but again, can't find the source of what define the associativity and precedence of an operator precisely.
So i'm here to cary on my research :
Question : Is precedence and associativity defined in the ES standard or related to the implementation (Node, ff, chrome etc)? In the case of it is a standard, can you point me the spot i missed ? In the case that it is related to the implementation, what defined the order of precedence ?
thanks.