Copy into notebooks Useful loops: //move forward x spaces for (var s=0;s<x;s++) move(); //collect x balls in a row for (var s=0;s<x;s++){ takeBall(); move(); } // climb z steps for (var i=0;i<z; i++){ turnLeft(); move(); turnRight; move(); } example: use a for loop to rewrite this: takeBall(); move(); takeBall(); move();