I graduated in 1990 in Electrical Engineering and since then I have been in university, doing research in the field of DSP. To me programming is more a tool than a job.
If the operands are of different types, try to convert them to the same type before comparing:
When comparing a number to a string, try to convert the string to a numeric value.
If one of the operands is a boolean, convert the boolean operand to 1 if it is true and +0 if it is false.
If one of the operands is an object and the other is a number or a string, try to convert the object to a primitive using the object's valueOf() and toString() methods.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I do not have the possibility of checking it, but if I remember correctly
is true because since both sides "look" like floating point numbers, they are converted both to float before doing the comparison.
MDN: Equality (==) — Comparison with type conversion