1

I understand that everything in Javascript are objects, e.g. all the mathematical methods/functions such as Math.sin(), Math.round() etc belong to the Math Object. I have however not found out what is the object of the parseInt() method, I have searched the MDN but I am not satisfied with the answers there?

Rajesh
  • 24,354
  • 5
  • 48
  • 79
Pol
  • 31
  • 1
  • 1
  • 3
  • 1
    which object? thats only a public function – LellisMoon Nov 28 '16 at 11:22
  • 1
    "Everything is an object" – yes, `parseInt` is an object. That doesn't mean everything has to be a *method on an object*. – deceze Nov 28 '16 at 11:23
  • 1
    In my understanding, its a part of `window`. Since these are public properties, the have to be at highest scope for everyone to have access to – Rajesh Nov 28 '16 at 11:25

0 Answers0