Why external js file doen't work with HTML5 canvas

Hi guys,

Can anybody give me an idea why the external js file isn’t working with HTML5 canvas? It has to be on the same file and I don’t want to expose my codes to the public?

In this case, I’m sure my path to .js files are correct.

Thank for your help in advance

You won’t be able to prevent your code from being exposed to the public. That come as a part of the territory when you perform scripting on a publically accessible web page.

Can you link us to a test page that exhibits the problem?

Thanks Paul, for your help.

I’m unable to provide you the link because I’ve just tested it locally on my machine.