From 591b5f79f93f5c9f53fa37502ae3dfa4eb24ef5a Mon Sep 17 00:00:00 2001 From: Avinash Singh <47045062+avinashsinghdhillon@users.noreply.github.com> Date: Fri, 22 Mar 2019 09:17:36 +0530 Subject: [PATCH] Update article.md --- 1-js/09-classes/04-static-properties-methods/article.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/1-js/09-classes/04-static-properties-methods/article.md b/1-js/09-classes/04-static-properties-methods/article.md index 760641ea..73a22a79 100644 --- a/1-js/09-classes/04-static-properties-methods/article.md +++ b/1-js/09-classes/04-static-properties-methods/article.md @@ -1,7 +1,7 @@ # Static properties and methods -We can also assign a methods to the class function, not to its `"prototype"`. Such methods are called *static*. +We can also assign a method to the class function, not to its `"prototype"`. Such methods are called *static*. An example: @@ -125,9 +125,9 @@ Article.publisher = "Ilya Kantor"; ## Statics and inheritance -Statics are inhereted, we can access `Parent.method` as `Child.method`. +Statics are inherited, we can access `Parent.method` as `Child.method`. -For instance, `Animal.compare` in the code below is inhereted and accessible as `Rabbit.compare`: +For instance, `Animal.compare` in the code below is inherited and accessible as `Rabbit.compare`: ```js run class Animal {