Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (var i = 0; i < monTab.length; i++) {
- var num = monTab[i];
- counts[num] = counts[num] ? (counts[num] + 1 : 1)/50*100;
- }
- console.log (counts)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement