- == : 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 <=
- and &&
- or ||
- ! : not
- ((5>2)&&(2>2)):true && false= false
- ((5>2)|| (2>2)) : true || false =false
- ! (2>1) : false
-
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); }