<html><head><title>Bitid</title></head>
<body>
<table cellspacing=10><tr><td valign=top>
 <pre>
   Kood:
 
   document.writeln(5&3);
   document.writeln(5|3);
   document.writeln(5^3);
   document.writeln( ~5);
   document.writeln((~5)&7);
   document.writeln(5>>2);
   document.writeln(5<<2);

var arv=100;
 for(i=0; i<8; i++){
    document.write(arv&1);
    arv=arv>>1;
 }
</pre>
<td valign=top> <pre>
 Tulemus:
 
<script>
   document.writeln(5&3);
   document.writeln(5|3);
   document.writeln(5^3);
   document.writeln( ~5);
   document.writeln((~5)&7);
   document.writeln(5>>2);
   document.writeln(5<<2);

var arv=100;
 for(i=0; i<8; i++){
    document.write(arv&1);
    arv=arv>>1;
 }

 </script>
 </pre>
 </table>
 </body></html>