Not a list of quirks to memorize, a walk through the specification steps that produce them. Most explanations of JavaScript’s == operator…