en
en

Question du test Javascript

Expliquez la différence entre `__proto__` et `prototype` en Javascript

Difficile

Quelle est la différence entre __proto__ et prototype ?

Auteur: Jean-marie CléryStatut : PubliéeQuestion passée 2306 fois
Modifier
3
Évaluations de la communauté
developer avatar
Kind Jean Sammet
31/03/2025
When creating an object instance, the __proto__ property will be added to this instance and will itself contain an instance of the constructible function’s prototype. Also correct. This explains the prototype chain: the instance’s __proto__ points to the constructor’s prototype