How to inspect and display JS and React info from console ? (compared to Python)

I would like to know why this question (How to view Javascript documentation from console?) was closed. In fact, it’s what I’m looking for. Since I don’t find any explanation but the answers given to the question I suppose that is a matter of words.

I would like to know which functions (or properties) has JS and React to display info about themself (like JS modules, built-ins, etc, or in the case of React, for instance, a hook definition).

Let me explain better with a few examples:

  • Recently I found the console.dir() method that belongs to JS and let you displays an interactive list of the properties of the specified JavaScript object
  • Python has: built-in functions like dir() and help() or modules like inspect, dis or pkgutil.
  • Finally, I upload an image with an example that VS gives me when I hover on a hook but when I go to the docs I didn’t find that hook definition. I tried googling it but I only found this that is useful but it’s not the same.

enter image description here