DEV Community

DINH VAN KHOI
DINH VAN KHOI

Posted on

How to Write Code Using Hidden Methods

`
//
@ type{...}
*/

When working with the DOM in JavaScript and handling events, it's common to write the event handler function outside the addEventListener method for simplicity. However, doing so can cause the loss of the this context, making it difficult to access methods and properties that are supported by the this object.
How to use it when accessing, how should I write param @type

Top comments (0)