myanmarlinks
8/31/2017 - 11:14 AM

JavaScript Fundamental Part 3

JavaScript Fundamental Part 3

for(var i = 0; i < 4; i++) {
    moveForward();
    if(checkHasSwitch()) {
        if(checkSwitchHasClosed()) {
            openSwitch();
        }
    }
}