comparison-operators

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

Author: 威廉獅

擁有知識不是力量,分享知識才是力量。 對於新鮮事物保持樂觀學習的態度,創意來自於我對科技的熱愛!! 每週一篇以上分享我生活中、工作上、發現的新事物^_^

0 0 votes
Article Rating
guest
0 Comments
Inline Feedbacks
View all comments