Javascript Classes Explained | Javascript Factory Functions | es6 private variables properties

  Рет қаралды 28,764

Dave Gray

Dave Gray

Күн бұрын

Пікірлер: 62
@easycoding3998
@easycoding3998 3 жыл бұрын
I've been looking for a detailed explanation on class for two days and I'm just amazed how good this video is. The only video on youtube that I found explaining how to make properties private in classes. Definitely subscribing.
@DaveGrayTeachesCode
@DaveGrayTeachesCode 3 жыл бұрын
Glad to hear it EC! 💯🚀
@DevlogBill
@DevlogBill 2 жыл бұрын
This is one exceptionally good tutorial! I just knew the basic bare bones concepts of creating classes with objects. You took these basic concepts and grew them in complexity where it is understandable to a simple person like me. Thank you for the education and for making this content free, I am always broke, lol, thank you so much.
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
You're very welcome!
@UmitTunes
@UmitTunes 2 жыл бұрын
You are the first tutor that made me understand super() and class concept for JavaScript. Usually I was confused in React.js tutorials when I try to understand class components!
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
Glad I could help! 💯
@yatin1370
@yatin1370 Жыл бұрын
Again, a great tutorial. As I learned Java as my first language, it was definitely easier grasping the objects and classes concepts. It reinforced past learnings. Thanks Dave! 🙏 Edit: only one thing I feel mentioning here(for clarity) is, for factory functions we return a JavaScript Object which can be filled in by using the parameters passed to the function in variety of ways we see fit. That is why we get a object in 'myPizza' variable, and we can use it further with dot notation to call the function 'bake' by using it as a key in the key-value pair of the object.
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
You're very welcome!
@PavithranLion
@PavithranLion 2 жыл бұрын
entire class should be crystal clear ...you save my day sir
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
Glad to hear that!
@abdelbasset8280
@abdelbasset8280 3 жыл бұрын
As always you're very talented teacher.
@DaveGrayTeachesCode
@DaveGrayTeachesCode 3 жыл бұрын
Thank you!
@hadibq
@hadibq Жыл бұрын
Guess that was a workaround too to add # and limit its use inside classes to mimik the private behavior. Smart quick implementation though to solve the accessibility issue.
@oncoding4520
@oncoding4520 2 жыл бұрын
I am learning React from TMZ and there is a section there like since in the first folder. Like I understand functional component in React to be honest, I didn't understand how to pass the previous state and I remember I have learned by one of your videos. So while learning like in the first hours from beginning react since the first minute that I opened that lecture with class component I say to myself. Stop the video right here, go to Dave class lesson of JavaScript (I didn't know it that you have this video I just trusted the logic that you are great, so you are not going to miss to teach us this concept). So after 1h of learning now, I'm going to go back to React with deeper understanding. I like to call it the epistemology of coding. Coming from social background I like to go to the root of the problem and since I enjoy JavaScript but didn't know class I feel more great :) Thank you
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
Glad I could help!
@CondeAlberto
@CondeAlberto 2 жыл бұрын
Excellent video, packed with information and the "Can I use" resource as a bonus. Brilliant, as usual. 👌
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
Thank you, Alberto! 🙏
@UmerKhokhar-vd3nm
@UmerKhokhar-vd3nm Жыл бұрын
You are a Great Teacher. Thanks for this amazing course Dave😊😊
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
You're very welcome!
@gorsahakyan5429
@gorsahakyan5429 Жыл бұрын
Great video, good explanation, thank you very much Dave.
@Grihlo
@Grihlo 2 жыл бұрын
Thank you fro another lesson! Things are getting harder :) This video took me more time to understand what's going on.
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
You're welcome, Grigory! Yes, classes are a more complex topic when you are staring out. 💯
@lamidimorufat3886
@lamidimorufat3886 5 ай бұрын
Thank you very much for this detailed explanations
@manishneog9595
@manishneog9595 2 жыл бұрын
Your javascript playlist is helping me a lot, Thanks sir :)😀😀
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
You're welcome, Manish! 🙏
@ofekezra7567
@ofekezra7567 2 жыл бұрын
Hello dave , amazing series thanks a lot, are you planning to add more JS projects ?
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
Thank you! 🙏 I may do more in the future. My focus this year has been React, MERN and other areas of Javascript. I always come back to Vanilla JS though! 💯
@karkisanket294
@karkisanket294 2 жыл бұрын
would you please consider adding time-stamp to the parts of videos like earlier videos of this series.Please it will be reallyu helpful
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
This video has many timestamps in the description. Maybe the description did not load for you?
@AnasZawahreh
@AnasZawahreh Жыл бұрын
Great tutorial
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
Thank you!
@erickgeneric
@erickgeneric 3 жыл бұрын
Great stuff. Much appreciated.
@DaveGrayTeachesCode
@DaveGrayTeachesCode 3 жыл бұрын
Glad I could help!
@zomalee4512
@zomalee4512 3 жыл бұрын
Nice tutorial!
@DaveGrayTeachesCode
@DaveGrayTeachesCode 3 жыл бұрын
Thanks!
@cleberlimacls
@cleberlimacls 8 ай бұрын
You are a great teacher. No doubt. But I have to say, JS has been extremely hard to understand. Loved HTML and CSS. This class is giving me headaches lol. When I checked the comments seems I'm the only one. I felt so bad and stupid. However, It also seems people here already have a basic experience and I'm having the first contact by your videos. So I wonder if there is any tip or path I should go first. Maybe start again or keep studying HTML/CSS more... I was planning to finish your JS videos before that but it feels I'm holding myself back now. So frustrating
@DaveGrayTeachesCode
@DaveGrayTeachesCode 8 ай бұрын
Sorry to hear but don't give up. JS is hard. To supplement these videos, I also suggest the exercises at freecodecamp.org
@cleberlimacls
@cleberlimacls 8 ай бұрын
What a cool site. Great way to review your content. Thank you very much@@DaveGrayTeachesCode
@josiahcommey5965
@josiahcommey5965 2 жыл бұрын
Dave sir , can I use setter and getter to achieve the same results from using the constructor? If I can’t please tell the difference in their usage
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
Setters and getters are object methods. A constructor will define initial values for an object.
@doniaelfouly4142
@doniaelfouly4142 10 ай бұрын
thanks
@roamingcelt
@roamingcelt 2 жыл бұрын
Please justify obfuscation. Part of OOP was to get away from spaghetti code. Adding obfuscation is adding in spaghetti code. Go here to get there. But that points to this place. It adds confusion and bloated code.
@webdevlop
@webdevlop 5 ай бұрын
Iam Waiting For Your Java Script Project Tutorail
@sakirhusain7276
@sakirhusain7276 2 жыл бұрын
Super sir
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
Thanks!
@ogundekoadegbenga3766
@ogundekoadegbenga3766 2 жыл бұрын
Wow...🙌🙌🙌🙌
@wdwaleed
@wdwaleed Жыл бұрын
As of July, 2023, support for both private and public class fields is 93%
@thomasrenon
@thomasrenon Жыл бұрын
Is there a reason why 'getCrust' is declared before 'setCrust'?
@AlwafiCharki
@AlwafiCharki 6 ай бұрын
Nope doesnt matter which one before the other
@028-manikandan3
@028-manikandan3 2 жыл бұрын
Sir please sir class explain agian another video sir please 🙏🙏🙏 i al from india.i have language problem also.you class i watched html css also very good.but javascript classes part i feel tough.you can explain slovely another video sir please sir.this for kind to tell your subscriber 🙏🙏🙏
@m-a921
@m-a921 2 жыл бұрын
Try changing the playback speed. Maybe that helps.
@r0x304
@r0x304 3 жыл бұрын
OKAY NOW MAKE ONE WITH METHODS
@DaveGrayTeachesCode
@DaveGrayTeachesCode 3 жыл бұрын
At 1:05 we add the bake() method to the first example and other methods are discussed and displayed in the video, too. With examples of methods provided throughout the tutorial, I'm not sure what you are requesting / wanting / missing / or SHOUTING? Please clarify. Thanks.
@r0x304
@r0x304 3 жыл бұрын
@@DaveGrayTeachesCode I was looking for a different way to hide class methods just like there’s private fields for properties.
@DaveGrayTeachesCode
@DaveGrayTeachesCode 3 жыл бұрын
Ah I see. It has been awhile since I made this tutorial, but I think you can review the factory function portion for a current way to make private properties and methods. 👍🚀
@akshatchaube1213
@akshatchaube1213 Жыл бұрын
Now I want a pizza.
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
🍕🍕🍕
@flaexin7482
@flaexin7482 2 жыл бұрын
Imagine a pizza with pepperoni crust. 😂
@SleazyNice
@SleazyNice 2 жыл бұрын
Classes don't belong in JavaScript!
@shineLouisShine
@shineLouisShine 2 жыл бұрын
How come..?
JSON Explained with JavaScript | JSON Tutorial for Beginners
7:12
Javascript Objects Explained | Javascript Objects Tutorial
23:17
🕊️Valera🕊️
00:34
DO$HIK
Рет қаралды 20 МЛН
Smart Sigma Kid #funny #sigma
00:14
CRAZY GREAPA
Рет қаралды 103 МЛН
Will A Basketball Boat Hold My Weight?
00:30
MrBeast
Рет қаралды 145 МЛН
STOP Using Classes In JavaScript | Prime Reacts
14:02
ThePrimeTime
Рет қаралды 246 М.
Callbacks, Promises, Async Await | JavaScript Fetch API Explained
1:05:05
What is __proto__ ? | Javascript Prototypes Tutorial
23:11
Dave Gray
Рет қаралды 44 М.
What is THIS keyword in JavaScript? - Tutorial for beginners
26:40
JavaScript OOP Crash Course (ES5 & ES6)
40:21
Traversy Media
Рет қаралды 591 М.
JavaScript Classes Tutorial
1:01:29
freeCodeCamp.org
Рет қаралды 290 М.
Promises | Ep 02  Season 02 - Namaste JavaScript
39:06
Akshay Saini
Рет қаралды 512 М.