Magic of Prototype in javascript | chai aur

  Рет қаралды 137,005

Chai aur Code

Chai aur Code

Күн бұрын

Visit chaicode.com for all related materials, community help, source code etc.
#javascript #hindi
Sara code yaha milta h
github.com/hit...
Discord pe yaha paaye jaate h:
hitesh.ai/discord
Instagram pe yaha paaye jaate h:
/ hiteshchoudharyofficial

Пікірлер: 627
@vikasvarma9462
@vikasvarma9462 Жыл бұрын
0:00 - 27:00 object and new oprater features 27:00 prototype
@kumarchandan5436
@kumarchandan5436 Жыл бұрын
27:00
@sakibzalori3404
@sakibzalori3404 11 ай бұрын
Bhai bole karneka... to karneka😅
@thecalgarians4597
@thecalgarians4597 6 ай бұрын
I never 'knew' what all happened underneath 'new'. Mind blowing detailing explaiend.
@ironmanback
@ironmanback 9 ай бұрын
Ab muje chakkar ane laga hai😂
@smritiii7697
@smritiii7697 3 ай бұрын
same yar
@hemantsuthar6904
@hemantsuthar6904 3 ай бұрын
Basically the summary of the video is : 1) If you want that a method should be accessible or present in all objects in javascript (for ex: arrays, strings, functions,etc) then you can set your own method in the top level Object (because everything is an object in javascript) by using | Object.prototype.{method name} = function(){} | , after doing this you will have the access of your {method.name} from all objects for ex: every array that you declare, every string that you declare and so on. 2) But lets say if you want a certain method that should be accessible only on a certain object ( for example : (this is used in the video) you want a trueLength(){this method returns the true length of an array by trimming all the whitespaces} method to accessed on all String declarations , then you can be like | String.prototype.trueLength = function(){ code that does trimming and return length } | and this will be accessible on all strings . 3) this keyword in javascript refers to the current context of who is calling . matlab this boleto jisne bulaya . example: if you say | "hemant ".trueLength() | then how will the trueLength() method knows that on whom it have to perform . so we use this in the trueLength() function definition so it will automatically take the context of by whom the method is callled , boleto jisne bulaya uska kaam hoga..... if any one feels that i have included some wrong info in this comment then feel free to reply about the same.
@mr_professor_x
@mr_professor_x 3 ай бұрын
This is helpful..
@PrachiMukati
@PrachiMukati 3 ай бұрын
nicely explained
@hemantsuthar6904
@hemantsuthar6904 3 ай бұрын
@@PrachiMukati thanks
@hemantsuthar6904
@hemantsuthar6904 3 ай бұрын
@@mr_professor_x 👍
@Jagddis
@Jagddis 2 ай бұрын
Thanks you bro. did you start learning react ?
@pococopo2538
@pococopo2538 10 ай бұрын
shuru shuru m chize upr se jaari thi... fer ek bar bich m chhodke dubara se start kiya tb acche se smjh aagya.. Thank You Sir
@shreyakolekar4059
@shreyakolekar4059 11 ай бұрын
Thank you Hitesh Sir for this amazing explanation of prototypes. Covers everything right from prototypical inheritance to defining own prototype methods for various objects. I love how you teach everything starting from old coding practices to how it has been evolved today. For anyone learning JavaScript from scratch and aiming to become a software developer, this is the go-to series!!
@learnwithez
@learnwithez 9 ай бұрын
Hello mam can i ask you something?im pursing bsc it , after that can i get a job as fresher ik frontend in web development
@bhaimohsin
@bhaimohsin 9 ай бұрын
This playlist is full of detailed information. It is better than alot of PAID courses out there. Thank you Software Expert Hitesh Choudhary Sir!
@Vikram_Singh_CS
@Vikram_Singh_CS Жыл бұрын
Mark my words, In coming years this video will be one of the reason of making this playlist best present JS playlist on KZbin. -धन्यवाद हितेश
@DashinDanish
@DashinDanish Жыл бұрын
@ 27:00 begins prototypal (inheritance) !
@aksh1453
@aksh1453 Жыл бұрын
I am an English major student pursuing MERN stack following my passion. You contents are so helpful to understand things in details and it's work behind the scene . Thank you so much. You are affecting many students like me. ❤
@DashinDanish
@DashinDanish Жыл бұрын
same bro! I am an Arts grad. Recently jumped into learning MERN stack. I'd love to connect with you in order to learn together.
@viralvideos6200
@viralvideos6200 Жыл бұрын
Same here
@esportsgapshap3149
@esportsgapshap3149 Жыл бұрын
hey me here also a English Grad !
@kalsotraaditya98
@kalsotraaditya98 8 ай бұрын
​@@DashinDanishbro whats your update?
@DashinDanish
@DashinDanish 8 ай бұрын
@@kalsotraaditya98 Done with frontend almost.
@itumandal22
@itumandal22 Жыл бұрын
crystal and clear explanation of this context. this means ''jis ne v bulaya ho'. All thanks to Hitesh sir. 😊
@curiousmanash8154
@curiousmanash8154 6 ай бұрын
Hi can I get Instagram-id
@Hitesh.17
@Hitesh.17 9 ай бұрын
How easily you made me clear about new and this keyword with the prototype concept..... you really nailed it 🔥
@avneetyadav474
@avneetyadav474 6 ай бұрын
Sir, this is the first time I could understood about prototype. Thanks
@junaidshaikh952
@junaidshaikh952 Жыл бұрын
Perfect In dept video that I needed. Many thanks explaining in such a simple way.
@kunalpandey3579
@kunalpandey3579 2 ай бұрын
At first I didn't understand what he was trying to explain about the prototype but then I rewatched the whole video. After that everything became crystal clear. This is the best explanation of a prototype you can ever imagine.
@AbhijeetBhattacharya-n8g
@AbhijeetBhattacharya-n8g 10 ай бұрын
The portion where we added custom function to all objects was really cool
@Leo-gaming-le
@Leo-gaming-le 5 ай бұрын
this prototype video is really amazing i learn so so much from this video specially jis tarah se aap ne samjaya. muje bohot lambe time se prototype samaj nhi aarha tha specially "this" and "new" key word but finally....... finally me acche se samaj gya thank you so so much sir. ❤❤❤ sir aap ese hi video bnate rhe.
@shoaibhasan4026
@shoaibhasan4026 Жыл бұрын
All my topics about functional constructor , new keyword , constructor function, prototypal inheritance and this keyword are crystal clear now . Great video Sir No paid courses teaches like you in depth . Thank you so much sir ❤❤❤
@RaviYadav_Dev
@RaviYadav_Dev 9 ай бұрын
For people who are coming from Kotlin or similar languages, prototype function is a extension function for existing classes
@kartikeytiwari9950
@kartikeytiwari9950 Жыл бұрын
0:00 intro 2:50 start 7:10 diagram 9:20 Function as object 13:00 this 20:50 new 23:00 Notes 27:00 prototype 38:00 Inheritance 42:00 modern syntax of inheritance
@apatel176
@apatel176 Жыл бұрын
Anyone can help jab hum function ki jagah par Arrow function use karte hai toh score ki value undefined kyu batata hai ???
@GamingWithParamYT
@GamingWithParamYT Жыл бұрын
@@apatel176 brother arrow function me aap new keyword use nhi kar sakte basically constructor function nhi hn arrow func normal func se hi constructor func bnta hn thats why arrow func ye cheeze support nhi karta
@lokehirl
@lokehirl Жыл бұрын
Information rich and information heavy video, took a long to digest and understand, but after few replays.
@shadikhusain1216
@shadikhusain1216 Жыл бұрын
Thank you @Hitesh Sir. ❤ esi tarah video aayenge aur aese js topic milte rahenge to js mai mastery sach mai krr jayenge.
@pravinmaane
@pravinmaane 4 ай бұрын
what a informative video. Great work sir 👌
@uddhavraj9791
@uddhavraj9791 10 ай бұрын
Thank you sooo mch sir your way of teaching is sooo good. now i understood what is happening behind the scene. thnq soo mch for this fantastic explaination
@HarshGupta-if2xg
@HarshGupta-if2xg Жыл бұрын
I guess this is the first lecture from the whole javascript series which goes above my head ........................but loved it. Have to watch one more time but truely guiene content keep making indept video like that. Thank you so much.
@Manojsingh-cp9eq
@Manojsingh-cp9eq Жыл бұрын
same
@OmkeshJadhav
@OmkeshJadhav 7 ай бұрын
Same. Came to comment section just to check ki mere jaisa aur koi hai kya ya mai akela hi aisa hu
@prateek5668
@prateek5668 Жыл бұрын
Best teaching style....jis ka mtlb this
@singhkr
@singhkr 11 ай бұрын
what a amazing lectures best lecture available on youtube or any other platform
@abdul_rab01
@abdul_rab01 2 ай бұрын
Thanks Sir for this Masterpiece series !! What an explanation on prototypes , mindblowing! And the way you teach "new" keyword, Hatsoff to you sir!
@HeyIMSomnath
@HeyIMSomnath 5 ай бұрын
Itna depth aaj tak kisi JavaScript course me nhi hai.
@hassamsaeed4839
@hassamsaeed4839 5 ай бұрын
Akshay Saini ka course dekho
@thecalgarians4597
@thecalgarians4597 6 ай бұрын
Just watched till the end now and I'm speechless and awe struck. Nowhere on the planet I assume had anyone ever taught JS in this depth. ❤
@VishalSharma-rn7mt
@VishalSharma-rn7mt Жыл бұрын
This is amazing most simply, beautifully explanation of Prototype. Thank you so much Sirji, aapka explanation bahut Dhamakedar, kamaal ka hai, maja aagaya 😀 Aap world k Best Javascript teacher hai 😊
@hasiiabbasi
@hasiiabbasi Ай бұрын
Kia kmal ki explanation di hai Sir na new operators ki. Amazing Sir keep it up ❤
@MRINFO-cc8yn
@MRINFO-cc8yn 3 ай бұрын
This video worth millions of views, that's the most important video of the whole series, thank sir I got the entire foundational concept of JavaScript
@tech_channel110
@tech_channel110 Жыл бұрын
behtareen or shandar lecture hitesh sir ki jay ho
@kumarsagar34
@kumarsagar34 Жыл бұрын
this is pure gold, thank you very much for this video, mind blown, what a joke it was when i thought i knew javascript basics, thank you for this, please keep on making these valuable content
@nature443
@nature443 Жыл бұрын
Your Teaching clears most of thing ,Thank you,
@mohsinsiddique5158
@mohsinsiddique5158 2 ай бұрын
25:55 In the OOP 42 class (at the 26:00 mark), it was explained that whether or not you use return this, you still get the object.
@divasbhadani9225
@divasbhadani9225 Жыл бұрын
one of the best tutorial on youtube. Thank You Sir 🙏
@shubhtripathi4265
@shubhtripathi4265 4 ай бұрын
Thankyou sir for sharing quality knowledge 😁
@GamingWithParamYT
@GamingWithParamYT Жыл бұрын
Sir You are literally doing great Helping many students who can't afford expensive resources ❤❤❤❤
@akshayjain2777
@akshayjain2777 Жыл бұрын
Thanks sir 🎉❤ best series in of js with such a deep content in KZbin
@kaushalkishor143
@kaushalkishor143 7 ай бұрын
Thanks sir. your way of explanation is very nice. this video is useful for me.
@imsiddhants_official
@imsiddhants_official 10 ай бұрын
Really nice session😃 much appreciated!
@singhamita
@singhamita 5 ай бұрын
Thanks alot for creating such a simplified vedios and complete tutorial on internet.
@biju1656
@biju1656 Ай бұрын
Thank you so much Sir for creating such insightful and informative videos on KZbin. In a place where many creators focus more on monetization than meaningful content. I feel fortunate to have discovered your channel. You’re making a real difference...❤😇
@niharikabhardwaj4598
@niharikabhardwaj4598 5 ай бұрын
This is an excellent explanation, sir. I'm viewing for the first time, and I understand the majority of what I'm seeing.
@ExploreSciFi
@ExploreSciFi 5 ай бұрын
good after some days you gonna understand even without inner concepts watching tutorials 😂 kxch ziyada to nai hogiya
@BitFire007
@BitFire007 7 ай бұрын
"Chai aur Code, you're the hero of my JavaScript learning story. Your tutorials are unmatched!"
@AnshuKushwaha-xz8di
@AnshuKushwaha-xz8di 2 ай бұрын
guru ji pehle to maza aa rha tha ab sir dard hone lagata h . bhot complex hote ja rha hai but aap in the end easy kr dete hai,
@SarveshKumar-bl9in
@SarveshKumar-bl9in Жыл бұрын
This lecture is amazing . thank you so much sir.
@SachinYadav-eh7vg
@SachinYadav-eh7vg Жыл бұрын
This JS series is one of the best Thank You Hitesh 🧑‍💻
@hamzasajid7973
@hamzasajid7973 6 ай бұрын
interesting examples and very well explained
@viditgoel2909
@viditgoel2909 Жыл бұрын
This lesson had one of the best explanations in the whole series, just went through it and tried to solve the goal of adding the trueLength method to String by myself, took some effort and some help from mdn docs but now I feel confident about prototypes, and adding custom method and properties to them. thanks a lot, Sir.
@abdul_rab01
@abdul_rab01 2 ай бұрын
21:40 😆😆 best dailogue by sir!!
@swapnildutta2104
@swapnildutta2104 7 ай бұрын
0:00 - 27:00 (New keyword, Objects, this) 27:01 - Prototype and prototypal inheritance and most imp part Jis === this ;
@nehabansal370
@nehabansal370 7 ай бұрын
Although I am an experienced developer, but I was always confused about the covered topics. Thankyou so much Sir, for explaining it in-depth. All these topics are finally clear.
@sureshbhatt363
@sureshbhatt363 5 ай бұрын
Thank you once again Hitesh bhai
@aryanwolfox6390
@aryanwolfox6390 9 ай бұрын
Use of new key word for Constructor function and the new operator 0:00-26:00 Prototype 26:30
@avinashjha7848
@avinashjha7848 4 ай бұрын
Awesome Explaination Sir
@barunkumar3276
@barunkumar3276 Жыл бұрын
Reached at 22:19. Ye video meel ka patthar sabit hoga. Salute!!
@kundandubey2401
@kundandubey2401 6 ай бұрын
thank you sir for detail explanation😊
@programmer1682
@programmer1682 29 күн бұрын
Timestamp: 00:00 to 27:00 object & new keyword 27:00 prototype
@deveshsharma534
@deveshsharma534 6 ай бұрын
great sir as always. thankyou so much
@linux097
@linux097 10 ай бұрын
0:00 - 27:00 object and new oprater features . 27:00 prototype.
@shivamkumar-i1j3s
@shivamkumar-i1j3s 6 ай бұрын
0:00 - 27:00 new keyword 27:00 prototype
@WebDeveloper-wt5tz
@WebDeveloper-wt5tz 8 ай бұрын
I am from Pakistan. By watching this series I decided to accept you as my teacher. Thank you for such an amazing series!
@sanantakumarrath1775
@sanantakumarrath1775 Жыл бұрын
maja aagaya sir , lekin ye mera last point tha ise upar jate toh sab mera sar ke upar se jata , Lekin ye video bahat helpfull tha mujhe this and prototype words se dar lag tat tha ,lekin ye video dekhne ke bad confidence level badh gaya
@Dev-Phantom
@Dev-Phantom 9 ай бұрын
one of the best Lecture and Concept in my life sir ,,the best........
@atvmoviedigest
@atvmoviedigest 6 ай бұрын
Ye ramayan ka saar bahut hi interesting tha, please continue teaching us in this.style 🤩
@vimalradadiya5929
@vimalradadiya5929 6 ай бұрын
next level explanation for behind the scene working of js
@msdhaliwal
@msdhaliwal 4 ай бұрын
this is the one of the best videos of your channel 🔥
@soniyaprasad77
@soniyaprasad77 11 ай бұрын
This ka matlab "Jis" . Obeying Hitesh's Sir Order!
@dokodiaries
@dokodiaries 10 ай бұрын
Very detailed. Supercalifragilisticexpialidocious. Thank you so much..
@SpecialShorts892
@SpecialShorts892 Жыл бұрын
ye topic PWSKILLS ke course me achhe se clear nhi hua , but yha crystal clear ho gya (pw ke lect me saare example same hai bas wo array , string& function all are passes through Object wala diagram jiske wajah se clear hua ye topic )
@dragononfire7124
@dragononfire7124 8 ай бұрын
I was so confused in this concept, now sir you have cleared all my confusions😍.
@srishtijha3
@srishtijha3 11 ай бұрын
27:06 prototype section
@nikhatansari3310
@nikhatansari3310 11 ай бұрын
27:00 prototype
@SurajKhonde-tl1dk
@SurajKhonde-tl1dk 10 ай бұрын
jis ne bhi bulaya ham usike hoiye . thank you so much i paid 50,000 rs to learn javascript development i didn't get how to use this but in because of you i understand in free.
@subhranshu_sekhar
@subhranshu_sekhar 2 ай бұрын
Thanks sir. Prototype crystal clear 😊
@mayank_m_jain_1160
@mayank_m_jain_1160 Жыл бұрын
Great Video on Prototype. Part1 -> 0:00 - 26:38 Part2 -> 26:38
@remo_ez_gaming
@remo_ez_gaming 10 ай бұрын
0:00 - Object and new keyword 27:00 - More about Prototype
@NeedToKnow.
@NeedToKnow. 11 ай бұрын
speechless, bow down to you sir 🙇‍♂
@supriya7665
@supriya7665 5 ай бұрын
Thank you sir for this topic, just confused between the function declaration within constructor and using prototype. What is the difference between setting methods in constructor or through prototype
@animesh1945
@animesh1945 2 ай бұрын
Chai pe charcha to ise kehte hain. This video is the best in this series. I Love this Charcha❤❤❤
@hemantkumaryadav8006
@hemantkumaryadav8006 2 ай бұрын
atleast 2 baar to dekhni hi padegi ye video tabhi clear hogya 👌
@ashish_more
@ashish_more Жыл бұрын
the information giving in this video is very high level , I have watched this video twice to actually understand and realise the importance of the topics taught by Hitesh sir , thank u sir for providing such a quality course .
@BioChemAcademy
@BioChemAcademy 6 ай бұрын
just for comment (Mark my words, In coming years this video will be one of the reason of making this playlist best present JS playlist on KZbin. )
@adilmian554
@adilmian554 9 ай бұрын
MashAllah Sir G ! Kmal kr di ksm sy Thnks sir g for this great efforte for us Love from Pakistan Sir g
@nmithileshkumar1919
@nmithileshkumar1919 3 ай бұрын
What an explanation sir!!! 🙏
@rishank-jindal
@rishank-jindal 9 ай бұрын
Sir there is one doubt , jaise ki aap ek constant object ke prototypes set kr rahe ho , to kya hum ye kaam constructor me kr sakte h kya . Please ho sake to video bna dijiye chhoti si mujhe confusion h isme . Love from UP ❤❤
@PRsHungama
@PRsHungama 2 ай бұрын
Sir, when we can directly add methods in constructor function then why we are using prototype for adding methods?
@soniyakada595
@soniyakada595 7 ай бұрын
Thankyou Sir for making such amazing videos 🪄
@jast_aryan-13
@jast_aryan-13 9 ай бұрын
Sir ji bhhut achi series bnai hai apne or is prototype vale lec se toh bhhut knowledge mili hai 😊
@chaiaurcode
@chaiaurcode 9 ай бұрын
To share b krdo to aur acha rhega
@jast_aryan-13
@jast_aryan-13 9 ай бұрын
Jrur sir kre gee
@tusharsahu2711
@tusharsahu2711 Жыл бұрын
Best JavaScript Course Ever Thanks Sir Ji ❤
@chaiaurcode
@chaiaurcode Жыл бұрын
Most welcome
@RagSingh-e2e
@RagSingh-e2e 7 ай бұрын
what an amazing lecture, Salute Sir🙏,
@Dev-Phantom
@Dev-Phantom 7 ай бұрын
if knowledge is power then you have "superpower" Thanks sir for enlightening us.😍
@shubhamkumarjha9192
@shubhamkumarjha9192 Жыл бұрын
00:00 to 27:00 Yaha tak sir ji ne New keyword k bare ma in depth bataya ha & 27:05 se sir ji prototype bataya ha....
@parthpitroda35
@parthpitroda35 8 ай бұрын
No one else could have explained better than you about behind the scenes of the constructor, prototype and other concepts related to OOP Huge fan ❤
@PremveerSingh-c8e
@PremveerSingh-c8e 5 ай бұрын
25:00 please explain working of increment like you explain printme method
@pallabdandapat1866
@pallabdandapat1866 Жыл бұрын
00:00 - 26:58 --> new keyword with full potential and history. 26:59 --> prototype
@WatchNotchK2S
@WatchNotchK2S 8 ай бұрын
bhot bhot amazing video sir , ab aur maja aa rha hai js padhne me
Call and this in javascript | chai aur #javascript
13:06
Chai aur Code
Рет қаралды 69 М.
Object Oriented in Javascript | chai aur #javascript
32:03
Chai aur Code
Рет қаралды 157 М.
Não sabe esconder Comida
00:20
DUDU e CAROL
Рет қаралды 28 МЛН
Миллионер | 2 - серия
16:04
Million Show
Рет қаралды 1,6 МЛН
"كان عليّ أكل بقايا الطعام قبل هذا اليوم 🥹"
00:40
Holly Wolly Bow Arabic
Рет қаралды 13 МЛН
How to be a 10x Learner
17:41
Chai aur Code
Рет қаралды 115 М.
JavaScript Prototypal inheritance - Tutorial
15:29
ColorCode
Рет қаралды 80 М.
Promise in javascript | chai aur #javascript
50:21
Chai aur Code
Рет қаралды 284 М.
Class constructor and static | chai aur #javascript
26:36
Chai aur Code
Рет қаралды 88 М.
Now you know fetch in javascript | chai aur #javascript
18:37
Chai aur Code
Рет қаралды 154 М.
Não sabe esconder Comida
00:20
DUDU e CAROL
Рет қаралды 28 МЛН