I have been searching for an option to display a list of methods in a JavaScript file. Are there any methods to pass a JavaScript file name in a for
loop, and then to display the function names from the JavaScript file?
I am having list of javascript files, in each of js files, there are various functions. I want to display list of method names in browser window.
For example,if there are 2 functions in arithmetic.js file.
function add(){
}
function subtract(){
}
Then, in an html file, i want to display those two method names such as add, subtract..