comparison operator, largrer then & larger than or equal, smaller than & smaller then or equal, compare value only or value and type in JavaScript? [duplicate]

I’m new to JavaScript and currently studying comparison operators. I’d like to know: do comparison operators like greater than (>), greater than or equal to (>=), less than (<), and less than or equal to (<=) in JavaScript compare based on value only, or do they compare both value and type?

I tried testing this in Visual Studio Code, and it seems they compare only the value, but I’m not entirely sure. Can someone provide a clear explanation?