0

I was trying to access the defination of javascript built-in function provided by JS Engine but got nothing instead of :

ƒ log() { [native code] }

a. Why there is a need to hide the code?
b. Where to access this native code?
c. Which programming language is used to write the native code?

Akhlesh Kumar
  • 15
  • 1
  • 6
  • 2
    Also https://stackoverflow.com/questions/22371251/how-to-get-native-javascript-functions-source-code – Suraj Rao Dec 06 '21 at 07:18
  • Native Code are methods/funcitons that we haven't written ourselves , they are written by lower level languages to be used by higher level languages when they are invoked during interpretation, another example may be code written as part of a Browser API. E.g. SetTimeout – Kevin Greetham Oct 03 '22 at 22:49

0 Answers0