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

Pubblicato il: 31 agosto 2017
sul canale di: 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


In questa pagina del sito puoi guardare il video online codewars javascript - Two Joggers - SOLVED IN 3 EASY STEPS! della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Code Noob 31 agosto 2017, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 138 volte e gli è piaciuto 1 spettatori. Buona visione!