I'm just wondering how I can make a Javascript Canvas responsive with 90% in height and 100% in width. I have tried:
canvas.width = 100%;
canvas.height = 90%;
However it just brings up syntax errors in my IDE and the canvas no longer renders. Any ideas?