JavaScript code formatting

Try to format the following line of JavaScript:
_logTime(sMethod, _startTime, new Date().getTime(), args);

What you get is:
_logTime(sMethod, _startTime, newDate().getTime(), args);

The new and Date were combined producing bad code.

Amnon

Please sign in to leave a comment.