i write this code but i don`t now why my console.log give me undefined and how can i get value of prototype properties or functions
(function() {
    function Users() {}
    Users.prototype.getUser = function() {
      $.getJSON('/usersList/users.json', function(request) {
        Users.prototype.allUsers = request.users;
      });
    }
    var users = new Users();
    users.getUsers();
    console.log(users.allUsers);
  }
  ())What i wont to achieve is to have this user list as my object property like User.allUsers in some array. Thanks
 
     
    