Javascript - Comparison (Equal, Order,..)

> (World Wide) Web - (W3|WWW) > Javascript (Js|ECMAScript) > ECMAScript - Grammar Standard

1 - About

3 - List

3.1 - Order Comparison and Nan

The “invalid number value” NaN is neither greater than nor less than any other value.

var x = 1; 
var y = "bar"; 
console.log( x < y ); // false 
console.log( x > y ); // false 

Advertising

3.2 - Equal

web/javascript/es/comparison.txt · Last modified: 2019/02/16 17:40 by gerardnico