V
V
Vlad Tytcky2016-04-07 20:24:30
JavaScript
Vlad Tytcky, 2016-04-07 20:24:30

How to look at the implementation of internal methods in JavaScript?

alert(Array.join);//undefined
var x= Array.join;
alert(x)//undefined

So what is the way to see the code of the methods? Is it possible?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Defman21, 2016-04-07
@vlad7576

Yes. Look for the source code of the engine (Gecko, Webkit) and the corresponding implementation of the method. Through the console - no way.
Example for Gecko: https://github.com/mozilla/gecko-dev/blob/d18a5a08...

T
ThunderCat, 2016-04-07
@ThunderCat

alert(Array.join.toString() )?

K
Konstantin Kitmanov, 2016-04-08
@k12th

It is possible to esteem specifications, algorithms for all methods are described there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question