I want to see function body of console.log
function.
To check this I tried following code :
console.log(console.log.toString())
It prints only
function () { [native code] }
So how can I check this code?
I want to see function body of console.log
function.
To check this I tried following code :
console.log(console.log.toString())
It prints only
function () { [native code] }
So how can I check this code?
You can't. It is a native function, which under most browsers means it is written in a lower-level language like C
.
If you can explain why you would like the source, we might be able to help.