Try to use console.log()
But it\'s always printting undefined
.
Try to use the solutions like Console.log IE9 issue it does not work as well
Even though it's an old question, yet still giving me headache recently when working with IE11.
Simple reason: console
object is not initiated unless devtools (i.e. pressing F12
in IE11) is opened.
So a workaround could be, open devtools before loading console.log()
.
In my case, console.log
is loaded when my page is ready, so I open devtools and refresh the page to view my log.