var str = 'internet'; performAction(function(str) { console.log(str); });
Is there a problem with having a private variable str and also having a callback function with a parameter of the same name?
str
Thanks!