Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Internet Explorer's console.log is not actually a function.
>> document.getElementById
function getElementById() { [native code] }
>> document.getElementById instanceof Function
>> document.getElementById.apply
function apply() { [native code] }
>> typeof(document.getElementById)
>> console.log
function log() { [native code] }
>> console.log instanceof Function
>> console.log.apply(console, [123456])
"Object doesn't support property or method 'apply'"
>>, 123456)
"Object doesn't support property or method 'call'"
>> typeof(console.log)
>> typeof(console)
>> console.log instanceof ActiveXObject
>> console instanceof ActiveXObject
>> document.getElementById.toString()
function getElementById() {
[native code]
>> console.log.toString()
"Object doesn't support property or method 'toString'"
>> console.toString()
"Object doesn't support property or method 'toString'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.