Guest User

Untitled

a guest
Mar 21st, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. var volts = [];
  2. var sortedVolts;
  3.  
  4. for(var count = 0; count<3; count++){
  5. volts.push(floor(random(1,100)));
  6. alert(volts[count]);
  7. }
  8. sortedVolts=volts;
  9. sortedVolts.sort();
  10. alert("UNSORTED"+volts);
  11. alert("SORTED"+sortedVolts);
Add Comment
Please, Sign In to add comment