class personne en javascript code example
Example: classe Personne javascript
class Person { constructor(prenom, nom, age) { this.prenom = prenom; this.nom = nom; this.age = 0; } getName() { return this.prenom + " " + this.nom; } setAge(year) { this.age = 2018 - year; }}