Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var volts = [];
- var sortedVolts;
- for(var count = 0; count<3; count++){
- volts.push(floor(random(1,100)));
- alert(volts[count]);
- }
- sortedVolts=volts;
- sortedVolts.sort();
- alert("UNSORTED"+volts);
- alert("SORTED"+sortedVolts);
Add Comment
Please, Sign In to add comment