Skip to content

Commit

Permalink
Drop old text about limited support for classes (#2795)
Browse files Browse the repository at this point in the history
Fixes #2791
  • Loading branch information
sideshowbarker committed Mar 2, 2021
1 parent 297b6e6 commit 8da9351
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions files/en-us/learn/javascript/objects/inheritance/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,6 @@ <h2 id="Trying_the_example_out">Trying the example out</h2>

<p>The technique we covered here is not the only way to create inheriting classes in JavaScript, but it works OK, and it gives you a good idea about how to implement inheritance in JavaScript.</p>

<p>You might also be interested in checking out some of the new {{glossary("ECMAScript")}} features that allow us to do inheritance more cleanly in JavaScript (see <a href="/en-US/docs/Web/JavaScript/Reference/Classes">Classes</a>). We didn't cover those here, as they are not yet supported very widely across browsers. All the other code constructs we discussed in this set of articles are supported as far back as IE9 or earlier, and there are ways to achieve earlier support than that.</p>

<p>A common way is to use a JavaScript library — most of the popular options have an easy set of functionality available for doing inheritance more easily and quickly. <a href="http://coffeescript.org/#classes">CoffeeScript</a> for example provides <code>class</code>, <code>extends</code>, etc.</p>

<h2 id="A_further_exercise">A further exercise</h2>
Expand Down

0 comments on commit 8da9351

Please sign in to comment.