Tran Sang Dev Blog

A real-life engineer blog

How does javascript do a relational comparison?

How does javascript do a relational comparison?

This post explains how javascript does when it compares two values with a relational operator ( <, >, <=, >=). If you are looking for equality comparison ( ==, ===), check this post [https://transang.me/javascript-equality-and-sameness/] instead. -------------------------------------------------------------------------------- Abstract Relational Comparison algorithm The relation comparison in Javascript mainly follows the Abstract Relational Comparison algorithm [https://tc39.es/
2 min read