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
source to share
No one has answered this question yet
See similar questions:
or similar: