WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

JavaScript comparisons



Comparison Operators

Comparison administrators are utilized in intelligent explanations to decide balance or distinction between factors or qualities.

  • TRUE/FALSE

Operator Description Comparing Returns Try it == equal to x == 8 false x == 5 true x == "5" true === equal esteem and equivalent type x === 5 true x === "5" false != not equal x != 8 true !== not square with esteem or not equivalent type x !== 5 false x !== "5" true x !== 8 true > greater than x > 8 false < less than x < 8 true >= greater than or measure up to to x >= 8 false <= less than or break even with to x <= 8 true