Created
April 26, 2018 23:07
-
-
Save jhonalino/decdde00b8b28a7cba37d3e39ef1ae8d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for( var x=0; x<3; x++){ | |
for( var y=3; y>0; y--){ | |
console.log( y*x); | |
} | |
} | |
//initiate x with 0 | |
//check x < 3 if we can proceed | |
//if so, do the inner loop | |
//initiate y to 3 | |
//check y > 0 if we can proceed | |
//if so, log x * y | |
//decrement y by 1 | |
//repeat line 10 until false | |
//go back to the outer loop | |
//increment x by 1 | |
//repeat line 7 until false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment