"undefined"has the meaning. These are 9 letters: undefined. Therefore, the string "undefined" does not matter undefined. A Stringin javascript may have the value undefined, but here the object Stringhas a specific value, which just happens with the "undefined" spell.
Using the explanation provided, the value undefinedon the right side will be converted to an object Stringwithout an assigned value, and then compared to String"undefined", otherwise a comparison.