RE: HTML5 Tutorial - 38 - Making Sweet Custom Shapes! Challenge

function doFirst2(){
var x = document.getElementById('canvas');
canvas = x.getContext('2d');
canvas.beginPath();
canvas.moveTo(230,125);
canvas.lineTo(415,235);
canvas.lineTo(460,30);
canvas.lineTo(515,235);
canvas.lineTo(690,125);
canvas.lineTo(580,300);
canvas.lineTo(780,355);
canvas.lineTo(575,400);
canvas.lineTo(685,580);
canvas.lineTo(510,470);
canvas.lineTo(460,670);
canvas.lineTo(410,470);
canvas.lineTo(235,580);
canvas.lineTo(345,400);
canvas.lineTo(140,350);
canvas.lineTo(340,300);
canvas.closePath();
canvas.stroke();
}

Regards
Bindu