I generally do in debugger or even browser console.
But an actual answer like an IDE would be Selenium or even for Visual Studio Code, there is a plugin available for Intellisense. There are others as well I haven't used. But frankly, you don't need all that, you can just do it in on a notepad ++ or console if you want to.