In this codewars javascript video I'll be taking you step by step in detail how I solved the "Two Joggers" challenge in 3 easy steps using javascript on codewars .com.
The steps I took to complete this challenge are as follows(I go into more detail in the video):
STEP 1
Cache the first argument in a variable
STEP 2
Create a loop that will run as long as the modulus of the variable divided by the second argument isn't equal to 0 and increase the variable by the first argument on every iteration.
STEP 3
return an array of the variable divided by x and y
Useful links:
while loop: https://goo.gl/Ygyvn4
modulus: https://goo.gl/kAwuEV
Download
0 formats
No download links available.
codewars javascript - Two Joggers - SOLVED IN 3 EASY STEPS! | NatokHD