Skip to content

Instantly share code, notes, and snippets.

@MacKentoch
Last active February 25, 2018 08:31
Show Gist options
  • Select an option

  • Save MacKentoch/5cb8acba1fb605a901ca8773807f59cf to your computer and use it in GitHub Desktop.

Select an option

Save MacKentoch/5cb8acba1fb605a901ca8773807f59cf to your computer and use it in GitHub Desktop.
class MaClass {
constructor(valeurInitial) {
this.maPropriete = valeurInitial;
}
maMethode() {
return this.maPropriete;
}
}
const monObjet = new MaClass('valeur initial');
monObjet.maMethode();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment