There was an error while loading. Please reload this page.
1 parent b7cf955 commit f73bd3fCopy full SHA for f73bd3f
1 file changed
1-js/09-classes/01-class/article.md
@@ -110,13 +110,8 @@ alert(typeof User); // function
110
// ...ou, plus précisément, le constructeur de la méthode
111
alert(User === User.prototype.constructor); // true
112
113
-<<<<<<< HEAD
114
-// Les méthodes sont dans User.prototype, e.g:
115
-alert(User.prototype.sayHi); // alert(this.name);
116
-=======
117
-// The methods are in User.prototype, e.g:
118
-alert(User.prototype.sayHi); // the code of the sayHi method
119
->>>>>>> 7b76185892aa9798c3f058256aed44a9fb413cc3
+// Les méthodes sont dans User.prototype, par exemple :
+alert(User.prototype.sayHi); // le code de la méthode sayHi
120
121
// Il y a exactement deux méthodes dans le prototype
122
alert(Object.getOwnPropertyNames(User.prototype)); // constructeur, sayHi
0 commit comments