Skip to content

Instantly share code, notes, and snippets.

@jhonalino
Created April 26, 2018 23:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jhonalino/decdde00b8b28a7cba37d3e39ef1ae8d to your computer and use it in GitHub Desktop.
Save jhonalino/decdde00b8b28a7cba37d3e39ef1ae8d to your computer and use it in GitHub Desktop.
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