That’s the +
unary operator. It’s equivalent to:
function(){ return Number(new Date); }
More Related Contents:
- What does "use strict" do in JavaScript, and what is the reasoning behind it?
- What’s the meaning of “=>” (an arrow formed from equals & greater than) in JavaScript?
- Add a property to a JavaScript object using a variable as the name?
- Location of parenthesis for auto-executing anonymous JavaScript functions?
- How does this JavaScript/jQuery syntax work: (function( window, undefined ) { })(window)?
- Where can I get info on the object parameter syntax for JavaScript functions?
- What does “options = options || {}” mean in Javascript? [duplicate]
- Why do results vary based on curly brace placement?
- Difference between (function(){})(); and function(){}(); [duplicate]
- Immediate function invocation syntax
- What is the correct syntax of ng-include?
- “var” or no “var” in JavaScript’s “for-in” loop?
- javascript function leading bang ! syntax
- Javascript Property with three dots (…)
- No semicolon before [] is causing error in JavaScript
- When should I use a semicolon after curly braces?
- Use a concatenated (dynamic) string as JavaScript object key? [duplicate]
- Use of commas versus semicolons?
- JavaScript error (Uncaught SyntaxError: Unexpected end of input)
- Can I use ES6’s arrow function syntax with generators? (arrow notation)
- How do I remove javascript validation from my eclipse project?
- How to convert Set to Array?
- Function and variable with the same name
- How to find Javascript syntax errors? [closed]
- Nested JSON objects – do I have to use arrays for everything?
- JavaScript instance functions versus prototype functions [duplicate]
- When is the ‘javascript:’ prefix valid syntax?
- Javascript while loop return value
- Does assignment with a comma work?
- + operator before expression in javascript: what does it do?