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?
Asked
Active
Viewed 33 times
1
-
1which 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
-
1In 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