Either the IDE/editor is able to assist you or you have to consult the documentation regularly.
That's just how it is.
JS' standard library, for example, is really tiny but I haven't memorized all of it. If the editor can't clue me in, I have to check the docs.