Posted By

Desoxena on 08/31/11


Tagged

bluh


Versions (?)

Little algorithm


 / Published in: JavaScript
 

URL: www.bluh.com

BLUH.

  1. <html>
  2. <head>
  3. <script type="text/javascript">
  4. function thingy(){
  5. var myArray=[5, 3, 1, 8];
  6. var myNums=[0, 0, 0, 0];
  7. for(j=8;j>-1;j--){
  8. for(i=0;i<4;i++){
  9. if(myArray[i] > j){
  10. document.write("&#926"+"....");
  11. }
  12. }
  13. document.write('<br>');
  14. }
  15.  
  16. }
  17. </script>
  18. </head>
  19. <body>
  20. <h1 style="color:purple">BLUH</h1>
  21. <input type="button" value="Click me!" onclick="thingy()"/>
  22. </body>
  23. </html>

Report this snippet  

You need to login to post a comment.