https://github.com/bell-kevin/training-js-10-loop-statement---for
Training JS #10: loop statement --for. function pickIt(arr){ var odd=[], even=[]; for (let i = 0; i < arr.length; i++) { if (arr[i] % 2 === 0) { even.push(arr[i]) } else { odd.push(arr[i]) } } return [odd,even]; }
https://github.com/bell-kevin/training-js-10-loop-statement---for
codewars-kata-solution
Last synced: over 1 year ago
JSON representation
Training JS #10: loop statement --for. function pickIt(arr){ var odd=[], even=[]; for (let i = 0; i < arr.length; i++) { if (arr[i] % 2 === 0) { even.push(arr[i]) } else { odd.push(arr[i]) } } return [odd,even]; }
- Host: GitHub
- URL: https://github.com/bell-kevin/training-js-10-loop-statement---for
- Owner: bell-kevin
- License: gpl-3.0
- Created: 2022-06-29T02:41:05.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-06T22:35:16.000Z (almost 4 years ago)
- Last Synced: 2025-01-23T16:48:31.573Z (over 1 year ago)
- Topics: codewars-kata-solution
- Language: JavaScript
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0