asked on
/ /global function
function _myGlobalFunct(str){
return (str);
}
the following anonymous function calls global function and it works as expected:// working anonymous function
(function () {
window._myGlobalFunct("value1");
})()
but the following return anonymous function doesn't call my function but doesn't throw any errors? :// Not Working Properly but doesn't throw any errors?
return (function() {
var rvalue = document.title || "No Title";
window._myGlobalFunct(rvalue);
return rvalue;
})();