A javascript Project is a Static Web project.
You need to define the JavaScript libraries as dependency.
The debug session is based on the chrome debug mode.
If you choose:
See Debugging
JavaScript Support plugin is bundled with IntelliJ IDEA and activated by default
Settings (Ctrl + Alt + S) > Javascript Filtering > Language and Frameworks > Javascript > The inter-wiki (grammar) does not exist and there is no default inter-wiki defined.grammar
A Javascript - Library in IDEA is a set of files and folders that is:
It only affects the completion list and highlighting.
By default, all predefined libraries and libraries are treated as libraries in any file within the project. Their usage scope is the whole project.
Project Libraries are not considered libraries in any of the files unless you attach their scope to a file explicitly.
This URL will be opened when you press Shift+F1 (Show external documentation) on methods from the library.
See also Feature Request:
Intellij resolved the data type via:
Without any library (no auto-completion, no navigation, no documentation)
Preferences | Languages & Frameworks | JavaScript | Libraries – click Download and search for the library