Possible Duplicate:
Can I get the name of the currently running function in javascript?
Get function name in javascript
Is there any way, in javascript, to obtain the name of the function, inside the function which was called.
function something() {
console.log( "The name of the function you invoke is " ...should says 'something' );
}