JavaScript environment how to view: 1, object properties, 2, the parameters of the function?

my background is Android+java, it is very easy to view object properties and function parameters, a shortcut key to the object definition or function definition, directly view, and the function is a prototype definition, clear.

Please tell me how to check the parameters of object properties and functions in JavaScript+es6. I use VS code to write react+node+koa2

thank you!

May.15,2022

I don't know how others did it

I am all of the following

check the document native API, check the MDN plug-in library, see the official website
print to the console to view the prototype
Code completion prompted by the editor

Under

Mac, click command +.


typescript suits you


check these items if you are not familiar with native encounters.
MDN: https://developer.mozilla.org...
ES6: http://es6.ruanyifeng.com/
w3school: http://www.w3school.com.cn/

non-native, such as lodash and axios, then go to the corresponding official website to see api

.

as for what you said about viewing it in the editor, it seems to be because some of the methods of java are implemented in the underlying syntax of Java, but js does not have that implementation and cannot be viewed.


I also use vscode. I just need to move the mouse over the function to display the definition of the function

clipboard.png

Menu