title: What does the CanvasRenderingContext2D function do?
body: <p>What does the <code>CanvasRenderingContext2D</code> function do? I do know that it has a property called <code>prototype</code> (<code>CanvasRenderingContext2D.prototype</code>) which has stuff like <code>fillRect()</code> and stuff. But, <code>CanvasRenderingContext2D</code> is a function object, so what is the use of <code>CanvasRenderingContext2D</code>? I am unable to find anything on the internet about this, so here is the question </p>
  
  <p><strong>Edit:</strong> Seems like people think this question is about doing stuff like <code>*canvas*.getContext("2d")</code>. The question is <em><strong>What is the purpose of <code>CanvasRenderingContext2D</code> as a function itself?</strong></em></p>
  
  <p><strong>Edit2:</strong> <code>CanvasRenderingContext2D</code> is a function object. Try <code>typeof CanvasRenderingContext2D</code> which returns <code>"function"</code>. So, what's the use of this function?</p>