If you want to see the source of the function, you can use the function toSource():
function x(a) {
return a + 1;
}
console.log(x.toSource());
I'm not sure how you read the source code outside the function, or even why you especially would like to do it.
source
share