Today I saw weird behavior
when I typed window.close
it showing function close() { [native code] }
in IE and function () { [native code] }
in chrome, I thought both are function.
But when I typed typeof(window.close)
it showing 'object'
in IE8 and 'function'
in chrome.
Why this different behavior? What are the ways I can use to check type of a variable in JavaScript? Is there other functions which shows this type of behavior?
Thanks