clearLog

This function clears log screen which located upper-right part of the coding screen. It is on the playground page. This code below first clear the screen, then traverses and prints the polygon points.

clearLog();
for(var i=0; i < polygon.points.length; i++) // access each polygon point
    print(polygon.points[i])