Magic of Prototype in javascript | chai aur

  Рет қаралды 110,348

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/hiteshchoudhary/
Discord pe yaha paaye jaate h:
hitesh.ai/discord
Instagram pe yaha paaye jaate h:
/ hiteshchoudharyofficial

Пікірлер: 557
@hemantsuthar6904
@hemantsuthar6904 Ай бұрын
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 28 күн бұрын
This is helpful..
@PrachiMukati
@PrachiMukati 25 күн бұрын
nicely explained
@hemantsuthar6904
@hemantsuthar6904 14 күн бұрын
@@PrachiMukati thanks
@hemantsuthar6904
@hemantsuthar6904 14 күн бұрын
@@mr_professor_x 👍
@Jagddis
@Jagddis 4 күн бұрын
Thanks you bro. did you start learning react ?
@vikasvarma9462
@vikasvarma9462 Жыл бұрын
0:00 - 27:00 object and new oprater features 27:00 prototype
@kumarchandan5436
@kumarchandan5436 11 ай бұрын
27:00
@sakibzalori3404
@sakibzalori3404 9 ай бұрын
Bhai bole karneka... to karneka😅
@ironmanback
@ironmanback 6 ай бұрын
Ab muje chakkar ane laga hai😂
@smritiii7697
@smritiii7697 21 күн бұрын
same yar
@kunalpandey3579
@kunalpandey3579 44 минут бұрын
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.
@pococopo2538
@pococopo2538 7 ай бұрын
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 9 ай бұрын
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 6 ай бұрын
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
@DashinDanish
@DashinDanish Жыл бұрын
@ 27:00 begins prototypal (inheritance) !
@bhaimohsin
@bhaimohsin 6 ай бұрын
This playlist is full of detailed information. It is better than alot of PAID courses out there. Thank you Software Expert Hitesh Choudhary Sir!
@junaidshaikh952
@junaidshaikh952 10 ай бұрын
Perfect In dept video that I needed. Many thanks explaining in such a simple way.
@thecalgarians4597
@thecalgarians4597 3 ай бұрын
I never 'knew' what all happened underneath 'new'. Mind blowing detailing explaiend.
@user-gm3uk3dp9q
@user-gm3uk3dp9q 7 ай бұрын
The portion where we added custom function to all objects was really cool
@avneetyadav474
@avneetyadav474 3 ай бұрын
Sir, this is the first time I could understood about prototype. Thanks
@Hitesh.17
@Hitesh.17 6 ай бұрын
How easily you made me clear about new and this keyword with the prototype concept..... you really nailed it 🔥
@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 ❤❤❤
@viditgoel2909
@viditgoel2909 10 ай бұрын
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.
@kumarsagar34
@kumarsagar34 10 ай бұрын
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
@Vikram_Singh_CS
@Vikram_Singh_CS 10 ай бұрын
Mark my words, In coming years this video will be one of the reason of making this playlist best present JS playlist on KZbin. -धन्यवाद हितेश
@singhamita
@singhamita 2 ай бұрын
Thanks alot for creating such a simplified vedios and complete tutorial on internet.
@shadikhusain1216
@shadikhusain1216 Жыл бұрын
Thank you @Hitesh Sir. ❤ esi tarah video aayenge aur aese js topic milte rahenge to js mai mastery sach mai krr jayenge.
@prateek5668
@prateek5668 Жыл бұрын
Best teaching style....jis ka mtlb this
@tech_channel110
@tech_channel110 10 ай бұрын
behtareen or shandar lecture hitesh sir ki jay ho
@lokehirl
@lokehirl 10 ай бұрын
Information rich and information heavy video, took a long to digest and understand, but after few replays.
@AnshuKushwaha-xz8di
@AnshuKushwaha-xz8di 12 сағат бұрын
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,
@itumandal22
@itumandal22 11 ай бұрын
crystal and clear explanation of this context. this means ''jis ne v bulaya ho'. All thanks to Hitesh sir. 😊
@curiousmanash8154
@curiousmanash8154 4 ай бұрын
Hi can I get Instagram-id
@Leo-gaming-le
@Leo-gaming-le 2 ай бұрын
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.
@singhkr
@singhkr 8 ай бұрын
what a amazing lectures best lecture available on youtube or any other platform
@pravinmaane
@pravinmaane Ай бұрын
what a informative video. Great work sir 👌
@divasbhadani9225
@divasbhadani9225 11 ай бұрын
one of the best tutorial on youtube. Thank You Sir 🙏
@MRINFO-cc8yn
@MRINFO-cc8yn 29 күн бұрын
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
@deveshsharma534
@deveshsharma534 4 ай бұрын
great sir as always. thankyou so much
@uddhavraj9791
@uddhavraj9791 7 ай бұрын
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
@SarveshKumar-bl9in
@SarveshKumar-bl9in 9 ай бұрын
This lecture is amazing . thank you so much sir.
@GamingWithParamYT
@GamingWithParamYT 10 ай бұрын
Sir You are literally doing great Helping many students who can't afford expensive resources ❤❤❤❤
@HeyIMSomnath
@HeyIMSomnath 3 ай бұрын
Itna depth aaj tak kisi JavaScript course me nhi hai.
@hassamsaeed4839
@hassamsaeed4839 2 ай бұрын
Akshay Saini ka course dekho
@VishalSharma-rn7mt
@VishalSharma-rn7mt 11 ай бұрын
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 😊
@WatchNotchK2S
@WatchNotchK2S 5 ай бұрын
bhot bhot amazing video sir , ab aur maja aa rha hai js padhne me
@nature443
@nature443 9 ай бұрын
Your Teaching clears most of thing ,Thank you,
@RaviYadav_Dev
@RaviYadav_Dev 6 ай бұрын
For people who are coming from Kotlin or similar languages, prototype function is a extension function for existing classes
@imsiddhants_official
@imsiddhants_official 7 ай бұрын
Really nice session😃 much appreciated!
@mohsinsiddique5158
@mohsinsiddique5158 7 күн бұрын
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.
@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 10 ай бұрын
Same here
@esportsgapshap3149
@esportsgapshap3149 9 ай бұрын
hey me here also a English Grad !
@kalsotraaditya98
@kalsotraaditya98 5 ай бұрын
​@@DashinDanishbro whats your update?
@DashinDanish
@DashinDanish 5 ай бұрын
@@kalsotraaditya98 Done with frontend almost.
@shubhtripathi4265
@shubhtripathi4265 2 ай бұрын
Thankyou sir for sharing quality knowledge 😁
@avinashjha7848
@avinashjha7848 2 ай бұрын
Awesome Explaination Sir
@msdhaliwal
@msdhaliwal Ай бұрын
this is the one of the best videos of your channel 🔥
@sureshbhatt363
@sureshbhatt363 2 ай бұрын
Thank you once again Hitesh bhai
@kaushalkishor143
@kaushalkishor143 5 ай бұрын
Thanks sir. your way of explanation is very nice. this video is useful for me.
@nmithileshkumar1919
@nmithileshkumar1919 12 күн бұрын
What an explanation sir!!! 🙏
@WebDeveloper-wt5tz
@WebDeveloper-wt5tz 6 ай бұрын
I am from Pakistan. By watching this series I decided to accept you as my teacher. Thank you for such an amazing series!
@dokodiaries
@dokodiaries 7 ай бұрын
Very detailed. Supercalifragilisticexpialidocious. Thank you so much..
@hamzasajid7973
@hamzasajid7973 3 ай бұрын
interesting examples and very well explained
@YogeshSatishAjilamogaru
@YogeshSatishAjilamogaru 9 күн бұрын
awesome explanation. thank you
@Veecast247
@Veecast247 Жыл бұрын
Thank you, sir, for the in-depth js series
@mandeep542
@mandeep542 2 ай бұрын
i watched both of the one shot but coming on every video to like them
@akshayjain2777
@akshayjain2777 Жыл бұрын
Thanks sir 🎉❤ best series in of js with such a deep content in KZbin
@ashish_more
@ashish_more 9 ай бұрын
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 .
@ayanbiswas-ct2qv
@ayanbiswas-ct2qv 11 ай бұрын
so far the best concept I have ever seen in JS
@kundandubey2401
@kundandubey2401 4 ай бұрын
thank you sir for detail explanation😊
@SachinYadav-eh7vg
@SachinYadav-eh7vg Жыл бұрын
This JS series is one of the best Thank You Hitesh 🧑‍💻
@user-mo1sy5ck7r
@user-mo1sy5ck7r 5 ай бұрын
what an amazing lecture, Salute Sir🙏,
@NeedToKnow.
@NeedToKnow. 8 ай бұрын
speechless, bow down to you sir 🙇‍♂
@vimalradadiya5929
@vimalradadiya5929 4 ай бұрын
next level explanation for behind the scene working of js
@Dev-Phantom
@Dev-Phantom 7 ай бұрын
one of the best Lecture and Concept in my life sir ,,the best........
@atvmoviedigest
@atvmoviedigest 4 ай бұрын
Ye ramayan ka saar bahut hi interesting tha, please continue teaching us in this.style 🤩
@subhranshu_sekhar
@subhranshu_sekhar 22 сағат бұрын
Thanks sir. Prototype crystal clear 😊
@dragononfire7124
@dragononfire7124 5 ай бұрын
I was so confused in this concept, now sir you have cleared all my confusions😍.
@hiphop861
@hiphop861 8 ай бұрын
Thank you so much for going so deep in the leature
@heyMonikaa
@heyMonikaa 3 ай бұрын
What a perfect shot to master
@niharikabhardwaj4598
@niharikabhardwaj4598 2 ай бұрын
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 2 ай бұрын
good after some days you gonna understand even without inner concepts watching tutorials 😂 kxch ziyada to nai hogiya
@Suraj.5260
@Suraj.5260 9 ай бұрын
Awesome video sir Thank you .
@saptathirtachoudhury4158
@saptathirtachoudhury4158 3 ай бұрын
Aapka motivation kam hone nahi denge Sir ji
@bhavinpatel9285
@bhavinpatel9285 9 ай бұрын
itna easy kar dete ho na sir ji aap, dhanyvadddd ❤❤💕💕💕💕💕💕
@sawerasajid4309
@sawerasajid4309 5 ай бұрын
congratulation sir on 200k
@sanantakumarrath1775
@sanantakumarrath1775 11 ай бұрын
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
@AnitaRani77
@AnitaRani77 4 ай бұрын
You are amazing sir.
@jast_aryan-13
@jast_aryan-13 6 ай бұрын
Sir ji bhhut achi series bnai hai apne or is prototype vale lec se toh bhhut knowledge mili hai 😊
@chaiaurcode
@chaiaurcode 6 ай бұрын
To share b krdo to aur acha rhega
@jast_aryan-13
@jast_aryan-13 6 ай бұрын
Jrur sir kre gee
@Jeevan0310
@Jeevan0310 10 ай бұрын
sir, Thank you for this series.
@hemashah7031
@hemashah7031 11 ай бұрын
too good, The Senior javascript dev level, thank you so much,
@nishu20501
@nishu20501 6 ай бұрын
amazing lecture once again
@adilmian554
@adilmian554 6 ай бұрын
MashAllah Sir G ! Kmal kr di ksm sy Thnks sir g for this great efforte for us Love from Pakistan Sir g
@deadlylive_gaming7154
@deadlylive_gaming7154 5 ай бұрын
Sir's teaching is great!
@soniyakada595
@soniyakada595 4 ай бұрын
Thankyou Sir for making such amazing videos 🪄
@Ke-bl4bd
@Ke-bl4bd 5 күн бұрын
Nice explanation 🙌👍
@kartikeytiwari9950
@kartikeytiwari9950 10 ай бұрын
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 10 ай бұрын
Anyone can help jab hum function ki jagah par Arrow function use karte hai toh score ki value undefined kyu batata hai ???
@GamingWithParamYT
@GamingWithParamYT 10 ай бұрын
@@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
@BitFire007
@BitFire007 4 ай бұрын
"Chai aur Code, you're the hero of my JavaScript learning story. Your tutorials are unmatched!"
@nehabansal370
@nehabansal370 4 ай бұрын
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.
@abdullahjawed1394
@abdullahjawed1394 2 ай бұрын
Excellent Sir . Kindly make some video of node js and express js
@antinoarg
@antinoarg 5 ай бұрын
excellent video sir🔥🔥
@vaibhav7009
@vaibhav7009 Ай бұрын
PROTOTYPE EXAMPLE EXPLAINED BY YOU WAS NEXT LEVEL 🔥
@geekguri_tech
@geekguri_tech 6 ай бұрын
Love his way of teaching really great series of JS I am learning JS and React side by side from Hitesh sir and I am pleased to be a student of him.
@thecalgarians4597
@thecalgarians4597 3 ай бұрын
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. ❤
@ro0t115
@ro0t115 4 ай бұрын
i would like to say this.teacher is awesome.
@fujelgaming9579
@fujelgaming9579 12 күн бұрын
a great level explanations sir
@HarshGupta-if2xg
@HarshGupta-if2xg 11 ай бұрын
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 9 ай бұрын
same
@OmkeshJadhav
@OmkeshJadhav 4 ай бұрын
Same. Came to comment section just to check ki mere jaisa aur koi hai kya ya mai akela hi aisa hu
@iambishwaa
@iambishwaa 26 күн бұрын
Finally Done ! ✅ Too deep.
@KhushiSingh-ft8dk
@KhushiSingh-ft8dk Ай бұрын
Thank you so much sir....😇
@sinha.aditya
@sinha.aditya 5 ай бұрын
Hitesh Sir ki Jay ho!!
@suyogadsod1633
@suyogadsod1633 10 ай бұрын
Best series on KZbin
@SatyendraSingh-mu2ux
@SatyendraSingh-mu2ux 10 ай бұрын
maza aa gya sir ji😃
@user-gq7ff4nt5c
@user-gq7ff4nt5c 4 ай бұрын
The guy is making the difference🔥
@nayanbiswas370
@nayanbiswas370 6 ай бұрын
jiska matlab this, it was much easier to stick in my thick skull 😎 Thank you Sir... Love from Bangladesh
Call and this in javascript | chai aur #javascript
13:06
Chai aur Code
Рет қаралды 55 М.
Object Oriented in Javascript | chai aur #javascript
32:03
Chai aur Code
Рет қаралды 126 М.
Sigma girl and soap bubbles by Secret Vlog
00:37
Secret Vlog
Рет қаралды 14 МЛН
Gym belt !! 😂😂  @kauermtt
00:10
Tibo InShape
Рет қаралды 17 МЛН
Create beautiful Scroll Animations Like APPLE !!
21:31
VA coder [ Tech ]
Рет қаралды 1,5 М.
JavaScript Prototypal inheritance - Tutorial
15:29
ColorCode
Рет қаралды 73 М.
Why are you not creating anything in c++ ?
14:46
Chai aur Code
Рет қаралды 101 М.
Decoding Stackoverflow developer survey for Indian Developers
52:58
Chai aur Code
Рет қаралды 21 М.
Lexical scoping and Closure | chai aur #javascript
26:48
Chai aur Code
Рет қаралды 78 М.
Now you know fetch in javascript | chai aur #javascript
18:37
Chai aur Code
Рет қаралды 124 М.
Object-oriented Programming in JavaScript: Made Super Simple | Mosh
1:02:49
Programming with Mosh
Рет қаралды 1,9 МЛН
Как бесплатно замутить iphone 15 pro max
0:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 8 МЛН
Better Than Smart Phones☠️🤯 | #trollface
0:11
Not Sanu Moments
Рет қаралды 15 МЛН
Look, this is the 97th generation of the phone?
0:13
Edcers
Рет қаралды 7 МЛН