In order to take the Timestamps in javascript yuo can write this kind of code:
// Usual Way var d = new Date(); timestamp = d.getTime(); But I found that is it also possible to get the same result in this way:
// The shortest Way timestamp = +new Date(); Can someone help me to understand how the Shortest Way works?