Skip to content

Instantly share code, notes, and snippets.

@davidsan
Created April 6, 2013 21:40
Show Gist options
  • Select an option

  • Save davidsan/5327730 to your computer and use it in GitHub Desktop.

Select an option

Save davidsan/5327730 to your computer and use it in GitHub Desktop.
function Commentaire(idCommentaire, auteur, texte, date, score) {
this.idCommentaire = idCommentaire;
this.auteur = auteur;
this.texte = texte;
this.date = date;
this.score = score;
}
// Commentaire.getHtml
Commentaire.prototype.getHtml = function () {
return ("Id : " + this.idCommentaire + "Auteur : " + this.auteur + "Texte : " + this.texte + "Date : " + this.date + "Score : " + this.score + "" + "");
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment