🔥Get the COMPLETE course (70% OFF – LIMITED TIME): http://bit.ly/2keDCna
Object-oriented programming in JavaScript: learn all about objects, prototypes, prototypical inheritance, this and more.
Subscribe for more videos:
https://www.youtube.com/channel/UCWv7vMbMWH4-V0ZXdmDpPBA?sub_confirmation=1
TABLE OF CONTENT:
00:00: What is OOP?
01:46: Four Pillars of OOP
08:50: Setting Up the Development Environment 11:07: Objects
11:53: Object Literals
14:58: Factories
17:50: Constructors
23:27: Constructor Property
25:53: Functions are Objects
31:09: Value vs Reference Types
37:00: Adding or Removing Properties
40:54: Enumerating Properties
43:45: Abstraction
47:48: Private Properties and Methods
51:55: Getters and Setters
57:32: Exercise
59:42: Solution
Want to learn more from me? Check out my blog and courses:
http://programmingwithmosh.com
https://www.facebook.com/programmingwithmosh/
Tweets by moshhamedani
Original source
22 responses to “Object-oriented Programming in JavaScript: Made Super Simple | Mosh”
Thank you very much for this video…. one of the best video for OOP in JavaScript….😀✌️🙌
Bro i have no idea what the hell your talking about. I thought this was a tutorial for beginners
Can I use note pad ++for this class?
Thanks.
Hi Mosh! Thank you for this tutorial. I just subscribed!!
perfect
Why is it i cant find live server by ritwick on the extension? All i can see is the live server preview but it only works in html. Please help me
"In Javascript, we don't have the concept of classes" – hmm what??
Hi, I have a question, why are we defining getters and setters for private variables of objects when they are just temporary variables, I mean their value disappear after calling the function right? for example if we call the setter to set defaultLocation to x:1, y:1, That will create the variable defaultLocation, accord the values 1,1 to x and y then defaultLocation will disappear beacause it's not a property. I hope you got what I'm saying, thank you!
Thanks Mosh for such a wonderful explaination.
Awesome tutorial, greetings from México
very well prepared tutorial, comprehensive and simple 🙂 thanks
Whats the Problem With writing circle.propertyName instead of circle {'propertyName' } ? Is it different?
Thanks for this helpful video .
Are you iranian ?
As a new comer to python., I found python is easier to learn and more intuitive than JavaScript. The OOP in js is something I always afraid of……
Mosh is a Gift to Planet Earth ❤
What a load of incomprehensible garbage! OOP is terrible!
Awesome!
Well organised… felt like KISS(Keep It Simple Stupid) principle.
Kudos !!
I Love Course
Does literally every literal just call an internal object constructor function in JavaScript?
Thanks for the video! How is abstraction different from obfuscation?
nice