Am I right in thinking that we can’t actually see the body of built-in constructor functions - i.e. String
- because it's written in different language(s)?
In the console it comes up as 'native code'.
Am I right in thinking that we can’t actually see the body of built-in constructor functions - i.e. String
- because it's written in different language(s)?
In the console it comes up as 'native code'.
Functions which appear as [native code]
appear that way because they are exactly that: native code. Their content is written in the language the javascript runtime is written in (e.g. node is written in C++ and deno is written in Rust).