How to set multiple variables at once in JavaScript? I have been setting multiple variables like this 

function doSomething() {

    var FirstName = $FirstName.data("ov");
    var LastName = $LastName.data("ov");
    var Company = $Company.data("ov");
    var Website = $Website.data("ov");

}


I just read some reviewed code and both reviewers advised setting the variables in a single statement, like this:

function doSomething() {

    var FirstName = $FirstName.data("ov"),
        LastName = $LastName.data("ov"),
        Company = $Company.data("ov"),
        Website = $Website.data("ov");

}


What would be the advantage of doing it the second way? Is there a performance benefit? Is it that there is less code?
From a very good book called JavaScript Patterns:


  Using a single var statement at the top of your functions is a useful pattern to adopt.  It has the following benefits:
  
  
  Provides a single place to look for all the local variables needed by the function
  Prevents logical errors when a variable is used before it's defined
  Helps you remember to declare variables and therefore minimize globals
  Is less code (to type and to transfer over the wire)
  


The author also recommends initializing the variables when you declare them when possible.