title: JavaScript toDataURL is not a function
body: <p>I want to obtain data URL of an image so that I use a <strong>dataurl</strong> function of canvas but it giving me an error for <strong>dataurl</strong> function.</p>
  
  <p><a href="https://embed.plnkr.co/0u8vdd7AsoM2lbp4bVOk/" rel="nofollow noreferrer">Please check here</a></p>