According to MDN:
The unary plus operator precedes its operand and evaluates to its operand but attempts to convert it into a number, if it isn't already.
It is commonly used as a shorthand for converting a value to a number. The conversion takes place by calling the value's .valueOf()
. From MDN:
The shorthand notation is prefixing the variable with a plus sign: +"5"
Date
implements its own Date.prototype.valueOf()
documented here:
This method is functionally equivalent to the Date.prototype.getTime() method.
So the result is effectively a shorthand for this code:
Common._nowStartTime = new Date().getTime();