Codewars Javascript - Find all divisors

Published: 11 August 2017
on channel: Code Noob
2,234
like

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


On this page of the site you can watch the video online Codewars Javascript - Find all divisors with a duration of hours minute second in good quality, which was uploaded by the user Code Noob 11 August 2017, share the link with friends and acquaintances, this video has already been watched 2,234 times on youtube and it was liked by like viewers. Enjoy your viewing!