Creating a Class definition in JavaScript

There are different ways to define classes in JavaScript. However, this is the most widely used and accepted at the moment: //class functionPerson(sLastName,sFirstName,iAge){this.lastName=sLastName;this.firstName=sFirstName;this.age=iAge;this.phoneNumbers=newArray();}//method Person.prototype.showFullName=function(){alert(this.lastName+" "+this.firstName);};//instances varoPerson1=newPerson("Lacava","Alessandro",30);varoPerson2=newPerson("Brown","John",50);oPerson1.phoneNumbers.push("1234567");oPerson2.phoneNumbers.push("7654321");oPerson1.showFullName();//outputs Lacava Alessandro alert(oPerson1.phoneNumbers);//outputs 1234567 oPerson2.showFullName();//outputs Brown John alert(oPerson2.phoneNumbers);//outputs 7654321