Is it possible to override the Image constructor in JS? So that, for example, every time a new Image() is created, a message is written to the cons
Image
new Image()
Take a look at this link, it is possible to override constructors. However, I believe this is now what you want, you want to EXTEND it. Take a look at the "Extends ABC" part.