Recently, I've been working on a project inspired by this example where I made adjustments to the code in order to display it on a canvas.
var canvas = document.getElementById('nokey');
var ctx = canvas.getContext('2d');
ctx.fillText("Stack Overflow",30,80);
Unfortunately, I'm facing issues with displaying the text using the above code. Can anyone please assist me in resolving this issue?