Why are some methods called from the base, while others are called from the prototype of an object?
For instance String.fromCharCode()
is a base method as opposed to String.prototype.charAt()
and String.prototype.indexOf()
which are prototype methods.
Why are not all methods of built-in objects called in the same way?