Skip to content

Instantly share code, notes, and snippets.

@myanmarlinks
Created August 31, 2017 11:14
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 myanmarlinks/f4262112e144200f4db3dad0a7d6b599 to your computer and use it in GitHub Desktop.
Save myanmarlinks/f4262112e144200f4db3dad0a7d6b599 to your computer and use it in GitHub Desktop.
JavaScript Fundamental Part 3
for(var i = 0; i < 4; i++) {
moveForward();
if(checkHasSwitch()) {
if(checkSwitchHasClosed()) {
openSwitch();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment