Menu
When I define a constructor/class/function in javascript, I can write it as either:
[CODE]var Person = function (name) {
this.name = name;
};
or:
[CODE]function Person (name) {
this.name = name;
};
… Which syntax is the de facto standard? Are there any pros/cons to writing it either way or does it not matter?