var tempFn = function(someText){
console.log(someText);
}
tempFn('siva');
// where I simply call the function with text 'siva'
противразница между п() и fn.call() в JavaScript
tempFn.call(this,'siva');
// where I call the function using call method
В чем разница между этими подходами?
Вы прочитали [документацию '.call'] (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/call)? –