Skip to content

Latest commit

 

History

History
33 lines (27 loc) · 676 Bytes

File metadata and controls

33 lines (27 loc) · 676 Bytes

comparation operator evaluating condition?

  • == : compare two falue
  • === : compare value and datatype
  • !== : not equall compare two value between value and data type are not the same
  • greater than >
  • greater than and equall >=
  • lesser than <
  • lesser than and equall <=

4>3 : true

3>3 : false

lpgical operator: return true or false

  • and &&
  • or ||
  • ! : not
  • ((5>2)&&(2>2)):true && false= false
  • ((5>2)|| (2>2)) : true || false =false
  • ! (2>1) : false

loops :

  • for : need to run number of time

  • while : dont know how many time to run the code

  • for(i=0;i<=10;i++) { document.write(i);

} var i=1;

  • while (i < 10) { console.log( i); }