By default this is disabled, so we'll have to enable it first in our settings. CTRL + SHIFT + P -> Settings (UI) and search for inlay parameter.

There's settings for javascript and for typescript. To enable both choose the all option from the dropdown.

json settings: "javascript.inlayHints.parameterNames.enabled": "all", and "typescript.inlayHints.parameterNames.enabled": "all",

vscode settings for inlay hints

After activating, you'll get parameter hints displayed for available functions.

javascript code with inlay hints