I know the basic of call and array.prototype.map.call() function takes two arguments, the first one is the object context to be used as this is inside the called function and second is the argument list. But in MDN I found an example where array.prototype.map is used via a call method and a string is passed as the first argument.
I want to know how the passed string gets manipulated inside map function. No this keyword inside map function. How does the map know that it is called on a string?
var map = Array.prototype.map;
var a = map.call('Hello World', function(x) { return x.charCodeAt(0); });