29:32 There is now a standard way to set private properties (added in ES2022). class Person { #age constructor(name) { this.name = name; // public this.#age = 20; // private } } const p1 = new Person('joe') console.log(p1.age) // undefined
Hey man i was really confused about OOP and every video i watched confused me even more. You are inbelieveably talented when it comes to teaching, you explained everything in a very easy to follow way and went into all the small details without assuming that we already know certain things. I learned a lot thanks! I hope you can make courses on Udemy! Keep going and thanks again.❤
Same thing for me, bought a 65h course on Udemy, spent 20h watching it so far to get nothing but confusion. I watched this video and finally understood! I might be able to get back to my course and follow through now, thx!
I think you have huge potential in making videos as your way of explaining is very easy to follow and you seem to know a lot about what you are talking about. I do agree with other people in the comment section that , from abstraction onwards, you rush through the topics too quickly. I am a fan regardless, keep up the good work
18:28 "imagine, I got merried... Something, that's not gonna happen for few years" :D I don't know, is it honesty or sence of humor, but I like it. Also I agree with others, that the tutorial is well made!
can you make a video on type script and angular , really love the way you break things down into comprehensible chunks. This is way more helpful than any documentations out there.
As many people said, it's exactly what I was looking for. Everything was clear, also for a beginner like me. Thanks for what you've done. You got a new subscriber too :D
Well, before ES6 or EcmaScrip2015 function constructors were used insted of classes (actually class - it's a simple syntax sugar). You can read more about this cos it gives you much more deep language understanding) Btw thx for such cool lesson!
im using visual studio code, how can i use terminal section?!? It doesnt recognize the 'note' command for some reason. Can you help? P.S Thanks to your perfect tutorial! RESPECT!
Very nice video! I would like to know when i have an object and i have some properties that holds some values , and another object need also that properties from the first object, how i impelement that correctly ?
Sir,I have a doubt in oop in JavaScript.when can implement anything in JavaScript without oop also.Then what is the use of oop in JavaScript?When do We use oop in JavaScript?
OOP and Procedural Oriented Programming are just paradimes. OOP's benifits grow in larger massive codebases as it helps get rid of a lot of repeated spaghetti code but in smaller code bases Procedural might still be ok. There's a reason why many of the top companies use it but you can not learn OOP with out first learning Procedural. Encapsulation and Abstraction are the main reasons why.
Thank you! Abstraction is quite confusing at first, but the whole idea is that you separate ur code so that peopl working with you can access some functionality without having to understand how it works!
Shouldn't the syntax for methods be: getName() { } not getName = () => { } I'm pretty sure the former is what tells the JS engine to set the method on the prototype object where as the latter definition would create a new copy in memory of the getName method for every single instance of the Person class.
Really appreciate it! I have put a lot of effort into the channel and I think its growing fast. Obviously I would love if it grew faster but I honestly don't know what I can do to increase the speed hahaha I know that certain videos will bring in more views (making a clone using firebase (and not actually write any backend code), use material ui, make videos on different languages). But I want to post stuff that will be helpful and not just to get views. Idk to be honest, but I am planning on making mre projects!
this guy is young but can really teach like a professional. Thanks so much pedro
Very easy to follow with! I am halfway through but will definitely complete the tutorial and work on a project with the learnings from here
Your production quality is top notch. Your explanations are clear and concise and your humor is great.
Hahaha appreciate the support!
29:32
There is now a standard way to set private properties (added in ES2022).
class Person {
#age
constructor(name) {
this.name = name; // public
this.#age = 20; // private
}
}
const p1 = new Person('joe')
console.log(p1.age) // undefined
You're logging age as you said to be a private member
You didn't pass it to p1
😂
Hey man i was really confused about OOP and every video i watched confused me even more. You are inbelieveably talented when it comes to teaching, you explained everything in a very easy to follow way and went into all the small details without assuming that we already know certain things. I learned a lot thanks! I hope you can make courses on Udemy! Keep going and thanks again.❤
Happy to hear :) This motivates me a lot! Also, I haven't told all subs yet but I'm 90% done with my first udemy course hahaha hope it goes well!
Same thing for me, bought a 65h course on Udemy, spent 20h watching it so far to get nothing but confusion. I watched this video and finally understood! I might be able to get back to my course and follow through now, thx!
I think you have huge potential in making videos as your way of explaining is very easy to follow and you seem to know a lot about what you are talking about. I do agree with other people in the comment section that , from abstraction onwards, you rush through the topics too quickly. I am a fan regardless, keep up the good work
Hahaha thank you! I agree, I should have taken my time and prioritized the quality of the video over making it shorter.
18:28 "imagine, I got merried... Something, that's not gonna happen for few years" :D I don't know, is it honesty or sence of humor, but I like it.
Also I agree with others, that the tutorial is well made!
Thank you for the complete explanation! I think I finally got my head around OOP! 🤟
I have really learnt a lot from this course, thank you so much Pedro. You are a great tutor
can you make a video on type script and angular , really love the way you break things down into comprehensible chunks. This is way more helpful than any documentations out there.
I agree documentations kinda slow you down
Very simple. I'm actually amazed! Love it!
With JS, private variables are declared using # as prefix.
Man I was also very confused with this.You made it super clear.Thank you.
Glad to hear it!
this.You = him;
lol, sorry had to
As many people said, it's exactly what I was looking for. Everything was clear, also for a beginner like me. Thanks for what you've done.
You got a new subscriber too :D
I definitely understand OOP better now. Thank you.
Thank you so much. I am truly grateful.
Getters and setters was kinda fancy until I watched this video, thank you Pedro.
Hey Pedro thank you for this video ❤
Thanks for such a simple explanation, this is awesome! ( log ctrl + space Enter => console.log) Go on, don't stop Bro
Glad you liked it!
Thank you Pedro, it was really useful for me.
The Best OOP In JavaScript Video On The Planet
Thank you!
HOW DO Y OU GET THE NEEW OBJECTED FROM THE CONSTRUCTOR CLASS INTO AN ARRAY???
Thanks for the video, very clear explanation!!!
This is a perfect tutorial for oop. Thanks!
Glad it was helpful!
Thx so much bro
This is exactly what I wanted. You’ve got a new subscriber 🔥💪
Thanks for the sub!
Thanks. I have been having a hard time understanding OOP.
Glad i could help!
Well, before ES6 or EcmaScrip2015 function constructors were used insted of classes (actually class - it's a simple syntax sugar). You can read more about this cos it gives you much more deep language understanding)
Btw thx for such cool lesson!
Yes! You are correct! There is no need for using the class syntax, it was made primarly to look like other languages!
im using visual studio code, how can i use terminal section?!? It doesnt recognize the 'note' command for some reason. Can you help?
P.S Thanks to your perfect tutorial!
RESPECT!
U had to install node js first
Very nice video! I would like to know when i have an object and i have some properties that holds some values , and another object need also that properties from the first object, how i impelement that correctly ?
Começando com poo agora, esse vídeo é incrível
Very well explained.Subbed!
Awesome, thank you!
incredible tutorial. Thank you
awesome man. thanks for the video. really loved it
May i know what theme you use in this video?
Thank u, how did u land ur first job
Do you not want code from outside the class to have direct access to the fields for security reasons/context/convention/etc?
Hi pedro OOP is a backend concept or frontend ? if i watn to become a front end develper then should i need to learn opp or not
I am not the person you asked and I think my answer is a little late, but here it is: both, it's a front and back end concept
Pls make a video on add to cart functionality using oop
amazing dud salah is the best greeting from Egy🦍
Great content, really helpful! Thanks a lot
thank you very much, it is really helpful.
thanks mate such and beautiful video
Damn that was so clear. Thanks
Bro you're on 🔥
Thank you! Glad you liked it!
@@PedroTechnologies good content , but i see that you need to work better your SEO and marketing strategy ...good luck
@@zakariaealami3135 Thank you, I really appreciate it! Do you have any tips on improving my seo?
ONCE THE CLASS CONSTRUCTOR IS CALLED AND CREATES THE NEW OBJECT, HOW DO I GET TH NEW OBJECT INTO AN OBJECT ARRAY???
.PUSH() I THINK
Sir,I have a doubt in oop in JavaScript.when can implement anything in JavaScript without oop also.Then what is the use of oop in JavaScript?When do We use oop in JavaScript?
OOP and Procedural Oriented Programming are just paradimes. OOP's benifits grow in larger massive codebases as it helps get rid of a lot of repeated spaghetti code but in smaller code bases Procedural might still be ok. There's a reason why many of the top companies use it but you can not learn OOP with out first learning Procedural. Encapsulation and Abstraction are the main reasons why.
Wait, your only 19? Ridiculously successful for your age bro keep it up
got stuck at 23:33. but great explanation brudda.
Thank you! Abstraction is quite confusing at first, but the whole idea is that you separate ur code so that peopl working with you can access some functionality without having to understand how it works!
@@PedroTechnologies now I understood everything. Please take care.👍
bro how did u become so good at this at 19
Super clear!!
Thank you sir 🔥
What the hell you go to my school. What a cool coincidence.
Hahaha you are from UBC? What year?
excellent tutorial!
Glad you liked it!
Great content really helpful!
Bro can you tell me which vs code theme you're using in this video?
Thank you !
Very ncie explanation, you just got new subscriber. Can I ask you what is the VS code theme you use?
amazing video bro
timestamp 31:45
thanks man
Shouldn't the syntax for methods be:
getName() {
}
not
getName = () => {
}
I'm pretty sure the former is what tells the JS engine to set the method on the prototype object where as the latter definition would create a new copy in memory of the getName method for every single instance of the Person class.
Is it a new intro?
Yes!
You create an awesome and informative video but like you, I am not a UA-camr but I think you need to create different projects to grow your channel.
Really appreciate it! I have put a lot of effort into the channel and I think its growing fast. Obviously I would love if it grew faster but I honestly don't know what I can do to increase the speed hahaha I know that certain videos will bring in more views (making a clone using firebase (and not actually write any backend code), use material ui, make videos on different languages). But I want to post stuff that will be helpful and not just to get views. Idk to be honest, but I am planning on making mre projects!
@@PedroTechnologies Damn yea Sure!!!
Cool bruh!
You watched in no time
Lmao this commented less then 1 minute after it went live
Thank you bro! Really appreciate it!
Nice
Glad you liked it!
@@PedroTechnologies hey can you make videos on ml algorithms
you are awesome
Very 👍
👍👍👍
L stanley
Thanks!!