Is it possible to see the JS related to the element in DevTools?

In the browser whenever I want to see a CSS added to the element I see it in the Styles section:

enter image description here

But what if I want to see a JS related to the element? Like, for example, a reference to the HTML element in a variable or that same variable related to functions, objects, and so on. Would it be possible in the same way as CSS?

I ask this because whenever I want to see some behavior in the element using JS I have to open the source code of the page in the browser and search line by line until I find the element code and that ends up being a lot of work.