JavaScript Classes #1: The Basics - JavaScript OOP Tutorial

Опубликовано: 30 Май 2018
на канале: dcode
37,445
694

In JavaScript you can use the OOP (Object-Oriented-Programming) feature of "classes" to construct objects which are then useful resources for your script/application.

By using the "class" keyword you are able to create a definition of a class and then from there you can instantiate it using the "new" keyword followed by the class name. You can think of a class as being a specified structure of what the eventual object HAS and also what it DOES.

In this video I take you through a simple and easy to understand example of defining a class called "Rectangle" and then creating different objects based off of it. I explain how instance properties/variables, instance methods and how constructors work - along with the "this" keyword.

For your reference, check this out:
https://developer.mozilla.org/en-US/d...

Support me on Patreon:
  / dcode  

Follow me on Twitter @dcode!

If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!


На этой странице сайта вы можете посмотреть видео онлайн JavaScript Classes #1: The Basics - JavaScript OOP Tutorial длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь dcode 30 Май 2018, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 37,445 раз и оно понравилось 694 зрителям. Приятного просмотра!