Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 1.46 KB

File metadata and controls

30 lines (19 loc) · 1.46 KB

comparison operator: Evaluating Condition

A comparison operator compares its operands and returns a logical value based on whether the comparison is true. The operands can be numerical, string, logical, or object values. Strings are compared based on standard lexicographical ordering, using Unicode values. In most cases, if the two operands are not of the same type, JavaScript attempts to convert them to an appropriate type for the comparison. This behavior generally results in comparing the operands numerically.

comparison operator

Logical Operators

Logical operators are typically used with Boolean (logical) values; when they are, they return a Boolean value.

Logical Operators

Loops

  • For Loops

    A for loop repeats until a specified condition evaluates to false

  • Operations planner of For Loop ForShape

  • For Loop Example ForLoop

  • While Loops

    A while statement executes its statements as long as a specified condition evaluates to true.

  • Operations planner of While Loop WhileShap

  • While Loop Example WhileEx