function gotNames(data) {
      names = data.val().names;
      console.log(names);
      todo();
    }
// The data comes back as an array
The data comes back as an array
The data comes back as an array
function gotNames(data) {
      names = data.val().names;
      console.log(names);
      todo();
    }
function gotNames ( data ) { names = data . val ( ) . names ; console . log ( names ) ; todo ( ) ; }
The data comes back as an array
The data comes back as an array