I am trying to log some details to browser console. I want to prefix each statement with current data and time.
e.g. 02/02/14 14:37 : some data
I tried it by creating new Date object. But this turns into creating so many Date objects.
What is the efficient way to do this in javascript?
Thanks.