Closed ProgrammingLife closed 2 years ago
I think you'll find that the canvas_width
variable you created has the value undefined
since the canvas object doesn't have an attribute with that name. Here's how you rename values when using destructuring assignment.
You're getting an error from fillText()
because it expected a number rather than undefined.
@samizdatco, omg shame on me. I need more rest. 😀 Thank you for the reply!
Tried to change this working code:
to this:
And I got broken code with the message:
If I rename it back - all work fine again. Is it a bug or a feature?