document.getelementbyid(...).innertext is not a function code example
Example: document.getElementById(...).getContext is not a function
// .getContext() is a property method of canvas not div or else
// .getContext() is a property method of canvas not div or else