fbpx

JavaScript Learning online:comparison operators

List of comparison operators:

  • > Greater than
  • < Less than
  • <= Less than or equal to
  • >= Greater than or equal to
  • === Equal to
  • !== Not equal to
  • Example:
  1. console.log(15>4);
    True
  2. console.log(“Xiao Hui”.length<122);
    True
  3. console.log(“Goody Donaldson”.length>8);
    True
  4. console.log(8*2===16);
    True
  5. console.log()
    false
0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
Scroll to Top