I create a JavaScript class
like below:
class contact{
constructeur(nom,prenom){
this.nom = nom;
this.prenom = prenom;
}
function afficher(){
return "Nom : " + this.nom + "Prenom : " + this.prenom;
}
...
But I have an error in jslint Excepted an identifier saw 'class'
And in eslint gives an error on the keyword 'Class' is reserved