- Date : 2018-11-21
- Tags : #javascript #debug
If you are in console of developer tool and you want to know what the function does, you can view its source by:
- call
.toSource()
of variable or function name in Firefox
Example :
>> function hello(name) { return "Hello " + name; }
>> hello.toSource();
<- "function hello(name) { return \"Hello \" + name; }"
- click 'show function definition' in Chrome