Trying to understand how JS works in particular window.Math.random().
I check already by console
this
and prints out all the content, right! but on Math.random you can not continue. Always the same message.
"function random() {
[native code]
}"
So reading I saw a method call .toSource() by Mozilla(because is the only one supported by). So and this is the result so far.
"function random() {
[native code]
}"
I check already that this is because of C or C++, that are "Native Code"
So it's possible to get to know the method random() works?
Even do just to se how actually js work...
Also just for fun I tried to get the source from .toSoruce()
Object.prototype.toSource.toSource()
Try it just for fun. (use Firefox)