the Ruby goto(x, y) maps to jump in the Javascript pen.js. So when you call it, it does go to the coordinate x, y, but also calls the begin() which as I believe causes the canvass to be reset. So in your implementation it is at the moment not possible to have the Turtle draw disconnected objects.
the Ruby goto(x, y) maps to jump in the Javascript pen.js. So when you call it, it does go to the coordinate x, y, but also calls the begin() which as I believe causes the canvass to be reset. So in your implementation it is at the moment not possible to have the Turtle draw disconnected objects.