Internet explorer 11 console.log random / unreliable output

I just created an index.html file with the following content:

<script type="text/javascript">
    var markers = [{'dist': 1}, {'dist': 2}, {'dist': 3}];
    console.log(markers);
</script>

      

When the console is open (press F12 and select "Console") and just try refreshing the page a few times. The result should be the same as inside dynamic content, but it isn't.

I usually see this:

File: test.html, Line: 1, Column: 1
[object Object],[object Object],[object Object]
   [
      0: {
         [functions]: ,
         __proto__: { },
         dist: 1
      },
      1: {
         [functions]: ,
         __proto__: { },
         dist: 2
      },
      2: {
         [functions]: ,
         __proto__: { },
         dist: 3
      },
      length: 3
   ]

      

but sometimes it is:

File: test.html, Line: 1, Column: 1
[object Object],[object Object],[object Object]
   [
      0: {
         undefined: undefined
      },
      1: {
         undefined: undefined
      },
      2: {
         undefined: undefined
      },
      length: 3
   ]

      

Thanks in advance if anyone can shed some light on it.

+3
javascript object internet-explorer-11 console.log


source to share


No one has answered this question yet

See similar questions:

8
In IE11, how do I use console.log?
6
IE 11 - console.log displays undefined for object properties

or similar:

1799
Generating random integers in JavaScript within a specific range?
1597
Generating a random number between two numbers in JavaScript
1427
Generate random strings / characters in JavaScript
1113
How to randomize (shuffle) a JavaScript array?
758
How can I get the complete object in Node.js console.log () and not in [Object]?
405
What is console.log?
367
'console' is undefined error for Internet Explorer
333
JavaScript console.log throws an error: "Synchronous XMLHttpRequest on main thread is out of date ..."
143
How do I upgrade from Internet Explorer 11 to Internet Explorer 10?
0
why doesn't console.log define in firefox source code?



All Articles
Loading...
X
Show
Funny
Dev
Pics