Since the normal syntax for creating an object constructor,
function Player(name,score){
this.name=name;
this.score=score;
}
has a lot of redundancy, I was wondering if there was a way to create it similar to the object property shorthand. Something like:
function Player(name,score){
this.name;
this.score;
}