Methods

  • An instruction or action of an object
  • ex: myPainterPlus.turnLeft();
  • Can use it to make things simpler and easier so you don't have the repeat things multiple times.

Loops

  • while loop: Completes an action while a certain factor is true.
  • can be used to make complicated algorithms to complete tasks and make overall code simple.
  • ex: while (isOnBucket()) {
    takePaint();
    }</li> </ul>
    </div> </div>