From 91a89eac20095b983f369b5b63e5ab3b49a6f047 Mon Sep 17 00:00:00 2001 From: LexaWin <87317612+LexaWin@users.noreply.github.com> Date: Mon, 11 Oct 2021 21:32:36 +0300 Subject: [PATCH] Update article.md instanceof is only looking for Animal.prototype in the prototype chain, don't Rabbit.prototype --- 1-js/09-classes/06-instanceof/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/09-classes/06-instanceof/article.md b/1-js/09-classes/06-instanceof/article.md index 63081818..f9db989c 100644 --- a/1-js/09-classes/06-instanceof/article.md +++ b/1-js/09-classes/06-instanceof/article.md @@ -93,7 +93,7 @@ The algorithm of `obj instanceof Class` works roughly as follows: alert(rabbit instanceof Animal); // true */!* - // rabbit.__proto__ === Rabbit.prototype + // rabbit.__proto__ === Animal.prototype (no match) *!* // rabbit.__proto__.__proto__ === Animal.prototype (match!) */!*