Minor, potential ergonomic improvement. Similar to how logging String(document.createElement('input')) will output [object HTMLInputElement], we could make custom classes log out their names as well.
The default is just [object HTMLElement], so really anything would be an improvement here.
Proposal
Make it log out [object <host.constructor.name>]. E.g., [object ChessPieceElement].
Minor, potential ergonomic improvement. Similar to how logging
String(document.createElement('input'))will output[object HTMLInputElement], we could make custom classes log out their names as well.The default is just
[object HTMLElement], so really anything would be an improvement here.Proposal
Make it log out
[object <host.constructor.name>]. E.g.,[object ChessPieceElement].