6) How to make sure Canvas is supported in the browser using javascript?

We use getContext of canvas object.

if(canvas.getContext)
{
//Supported
}else{
// Not Supported
}