News for hackers. Stuff that matters.
Re:Using 'debugger' to help in javascript debugging by brettcvz on Monday February 18, 2013 @03:01PM (#5240282)
Just to preempt certain comments, I realize that many people have known this for ages, but there are many who have not, and to them this might just make their day.

Also, "+new Date" is neat

Re:Using 'debugger' to help in javascript debugging by kybernetikos on Monday February 18, 2013 @03:25PM (#5240404)
Since ecmascript 5, Date.now() is the standard way of doing this. Generally speaking, I'd prefer to do that (with shims for older browsers) than do the equivalent of creating a new Date object and calling .valueOf on it (which is what +new Date does).