You are placing your script in head ,so script runs before html document ,and it tries to access Canvas element which doesn't exits yet ,best is to place script before closing body tag
16th Jun 2020, 11:03 AM
Abhay
0
OK thank you
16th Jun 2020, 3:18 PM
Omkar Kamat
Vous avez souvent des questions comme celle-ci ?
Apprenez de maniĂšre plus efficace, gratuitement :