Back to Browse

Codewars Javascript - Find all divisors

2.2K views
Aug 11, 2017
6:38

Improve your javascript skills with Codewars javascript challenge. To join Codewars go to www.codewars.com/r/f-qT9g Steps I took to complete this Codewars Javascript challenge: 1) Create an empty array. 2) Iterate through all the possible divisors (except for one and the integer itself!). 3) Determine whether the number is a viable divisor. 4) Figure out if you're dealing with a prime number. Code it yourself to level up you javascript skills! No better way to learn than to JUST DO IT! To complete this challenge I used: remainder operator: https://goo.gl/L3qk1H isInteger(): https://goo.gl/xjTEjX push(): https://goo.gl/Lj3Sfj length: https://goo.gl/bLkHJf

Download

0 formats

No download links available.

Codewars Javascript - Find all divisors | NatokHD