I have drawn an arrow in canvas using the below code.
  window.onload = function() {
    var canvas   = document.getElementById("arrow");
    var context  = canvas.getContext("2d");
    context.beginPath();
    context.strokeStyle  = "red";
    context.fillStyle    = "red";
    context.moveTo(150, 400);
    context.lineTo(400, 400);
    context.lineTo(375, 375);
    context.arcTo(400, 400, 375, 425, 35);
    context.lineTo(400, 400);
    context.stroke();
    context.fill();
  });
But the arrow is not shown on the screen.