gdoron gdoron - 4 years ago 274
Javascript Question

What does " [native code] " mean?

I tried to investigate the jQuery code, so I used this:



I got this result:

function Function() { [native code] }

What does
[native code]
mean? Why can't I see the real code?

Tested with

Answer Source

$, jQuery is just a function. Without invoking it, it's just an ordinary function. A function's constructor is Function, hence $.constructor shows [native code].

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download