I am having a hard time understanding what the difference between the following declarations is...
var User = function(name, email) {
this.name = name;
this.email = email;
};
and
function User(name, email) {
this.name = name;
this.email = email;
};