IT-Academy

Polia Sort

Mar 30th, 2016
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. document.write("<h1>Polia a pokrocile metody</h1>");
  2.  
  3. document.write("<h2>I. Metoda sort()</h2>");
  4.  
  5. pole = new Array(5, 6, 7, 8, 22, 1, 33, 100, 2);
  6. document.write("Pole: " + pole + "<br />");
  7.  
  8. pole.sort();
  9. document.write("Zoradene abecedne: " + pole + "<br />");
Advertisement
Add Comment
Please, Sign In to add comment