codewars javascript - Two Joggers - SOLVED IN 3 EASY STEPS!

Veröffentlicht am: 31 August 2017
auf dem Kanal: Code Noob
138
1

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


Auf dieser Seite können Sie das Online-Video codewars javascript - Two Joggers - SOLVED IN 3 EASY STEPS! mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Code Noob 31 August 2017 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 138 Mal angesehen und es wurde von 1 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!