(I\'m reading the book \"Professional JavaScript for Web Developers\" to give a context about this question, specifically Chapter 5 on Reference Types)
The unary + operator converts a value to a number. For example +"123" will convert the string "123" to the number 123. This will also work for a date, and the date converted to a number gives the number of milliseconds.