Magic of Prototype in javascript | chai aur

  Рет қаралды 166,064

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

Пікірлер: 711
@thecalgarians4597
@thecalgarians4597 10 ай бұрын
I never 'knew' what all happened underneath 'new'. Mind blowing detailing explaiend.
@ironmanback
@ironmanback Жыл бұрын
Ab muje chakkar ane laga hai😂
@smritiii7697
@smritiii7697 7 ай бұрын
same yar
@_asius
@_asius Ай бұрын
Main toh behosh hoke 11 mahine baad utha 🙂
@hemantsuthar6904
@hemantsuthar6904 7 ай бұрын
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 7 ай бұрын
This is helpful..
@PrachiMukati
@PrachiMukati 7 ай бұрын
nicely explained
@hemantsuthar6904
@hemantsuthar6904 6 ай бұрын
@@PrachiMukati thanks
@hemantsuthar6904
@hemantsuthar6904 6 ай бұрын
@@mr_professor_x 👍
@Jagddis
@Jagddis 6 ай бұрын
Thanks you bro. did you start learning react ?
@vikasvarma9462
@vikasvarma9462 Жыл бұрын
0:00 - 27:00 object and new oprater features 27:00 prototype
@kumarchandan5436
@kumarchandan5436 Жыл бұрын
27:00
@sakibzalori3404
@sakibzalori3404 Жыл бұрын
Bhai bole karneka... to karneka😅
@pococopo2538
@pococopo2538 Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
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
@shilparajput8214
@shilparajput8214 2 ай бұрын
One of the best tutorial of prototype .... Moreover, the title of tutorial (Magic of Prototype in js) , is completely matching the energy of tutorial .Thank you so much sir.
@bhaimohsin
@bhaimohsin Жыл бұрын
This playlist is full of detailed information. It is better than alot of PAID courses out there. Thank you Software Expert Hitesh Choudhary Sir!
@ayushuniyal2586
@ayushuniyal2586 9 күн бұрын
0:00-27:00 - new keyword 27:08-end - prototype . so far best video on utube.
@itumandal22
@itumandal22 Жыл бұрын
crystal and clear explanation of this context. this means ''jis ne v bulaya ho'. All thanks to Hitesh sir. 😊
@curiousmanash8154
@curiousmanash8154 10 ай бұрын
Hi can I get Instagram-id
@adilmian554
@adilmian554 Жыл бұрын
MashAllah Sir G ! Kmal kr di ksm sy Thnks sir g for this great efforte for us Love from Pakistan Sir g
@DashinDanish
@DashinDanish Жыл бұрын
@ 27:00 begins prototypal (inheritance) !
@prateek5668
@prateek5668 Жыл бұрын
Best teaching style....jis ka mtlb this
@kunalpandey3579
@kunalpandey3579 6 ай бұрын
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.
@Leo-gaming-le
@Leo-gaming-le 9 ай бұрын
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.
@sujalthakkar2118
@sujalthakkar2118 2 ай бұрын
Was reading mdn docs for the whole js, didn't understand the prototypes and hierarchy b/w them, searched for it in yt, found this video, Now I'm continuing with this playlist. Amazing explanation and interaction with audience. Tysm!
@pranavindore2410
@pranavindore2410 27 күн бұрын
Very nice explantion of concept. No one goes until this depth. Proper Explanation with illustration of what happens behind the scene.
@HeyIMSomnath
@HeyIMSomnath 9 ай бұрын
Itna depth aaj tak kisi JavaScript course me nhi hai.
@hassamsaeed4839
@hassamsaeed4839 9 ай бұрын
Akshay Saini ka course dekho
@kt9950-r9x
@kt9950-r9x Жыл бұрын
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
@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 ❤❤❤
@manuvashisht9376
@manuvashisht9376 6 ай бұрын
00:02 Prototype in JavaScript is a unique and interesting concept. 01:50 Understanding the prototype behavior in JavaScript. 05:28 Understanding prototype inheritance in JavaScript 07:19 Understanding objects and prototypes in JavaScript 11:05 Functions and objects in JavaScript share properties and behavior 12:56 Understanding the use of 'this' in JavaScript prototypes 16:46 Using prototype in JavaScript to manage object properties efficiently. 18:29 Understanding prototype and method creation in JavaScript 22:03 Understanding the functionality of the 'new' keyword in JavaScript. 23:38 The new keyword creates linked objects with prototype properties. 26:54 Understanding the concept of prototypes in JavaScript 28:37 Implementing true string length property in JavaScript. 32:25 Prototype helps to add and access properties and methods to objects 34:27 Understanding the power and properties of prototype objects in JavaScript 38:08 Teaching support and object properties in JavaScript 39:53 Accessing properties using Prototypes 43:18 Accessing and manipulating properties directly in JavaScript 45:01 Accessing and using the true length property in JavaScript prototypes.
@Hitesh.17
@Hitesh.17 Жыл бұрын
How easily you made me clear about new and this keyword with the prototype concept..... you really nailed it 🔥
@sriharsh8633
@sriharsh8633 8 күн бұрын
One of the underrated playlist of JavaScript, which focuses on building the concept precisely and understanding it through projects and examples Make a playlist on the react full course also, sir If possible, it will be helpful.
@avneetyadav474
@avneetyadav474 10 ай бұрын
Sir, this is the first time I could understood about prototype. Thanks
@thecalgarians4597
@thecalgarians4597 9 ай бұрын
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. ❤
@Digilifts
@Digilifts 2 ай бұрын
Best Tutor that anyone can have. Deeply explained each and every module thank you so much sir ji for being one of the life saver in anyone's coding journey
@junaidshaikh952
@junaidshaikh952 Жыл бұрын
Perfect In dept video that I needed. Many thanks explaining in such a simple way.
@AbhijeetBhattacharya-n8g
@AbhijeetBhattacharya-n8g Жыл бұрын
The portion where we added custom function to all objects was really cool
@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 😊
@radhekrishnastutas4424
@radhekrishnastutas4424 Ай бұрын
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 ❤❤❤
@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 11 ай бұрын
Same. Came to comment section just to check ki mere jaisa aur koi hai kya ya mai akela hi aisa hu
@abdul_rab01
@abdul_rab01 5 ай бұрын
Thanks Sir for this Masterpiece series !! What an explanation on prototypes , mindblowing! And the way you teach "new" keyword, Hatsoff to you sir!
@raviprakash1686
@raviprakash1686 3 ай бұрын
You were absolutely right when you said that one should learn these concepts after working with javascript for atleast 1 year. Thank you so much for such an amazing video on prototype.
@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 11 ай бұрын
​@@DashinDanishbro whats your update?
@DashinDanish
@DashinDanish 11 ай бұрын
@@kalsotraaditya98 Done with frontend almost.
@MRINFO-cc8yn
@MRINFO-cc8yn 7 ай бұрын
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
@shivamkumar-i1j3s
@shivamkumar-i1j3s 9 ай бұрын
0:00 - 27:00 new keyword 27:00 prototype
@hasiiabbasi
@hasiiabbasi 4 ай бұрын
Kia kmal ki explanation di hai Sir na new operators ki. Amazing Sir keep it up ❤
@Dev-Phantom
@Dev-Phantom Жыл бұрын
one of the best Lecture and Concept in my life sir ,,the best........
@biju1656
@biju1656 4 ай бұрын
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...❤😇
@programmer1682
@programmer1682 4 ай бұрын
Timestamp: 00:00 to 27:00 object & new keyword 27:00 prototype
@pravinmaane
@pravinmaane 8 ай бұрын
what a informative video. Great work 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. -धन्यवाद हितेश
@uddhavraj9791
@uddhavraj9791 Жыл бұрын
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
@mayank_m_jain_1160
@mayank_m_jain_1160 Жыл бұрын
Great Video on Prototype. Part1 -> 0:00 - 26:38 Part2 -> 26:38
@BitFire007
@BitFire007 11 ай бұрын
"Chai aur Code, you're the hero of my JavaScript learning story. Your tutorials are unmatched!"
@soniyakada595
@soniyakada595 10 ай бұрын
Thankyou Sir for making such amazing videos 🪄
@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
@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
@akshayjain2777
@akshayjain2777 Жыл бұрын
Thanks sir 🎉❤ best series in of js with such a deep content in KZbin
@singhkr
@singhkr Жыл бұрын
what a amazing lectures best lecture available on youtube or any other platform
@ro0t115
@ro0t115 10 ай бұрын
i would like to say this.teacher is awesome.
@soniyaprasad77
@soniyaprasad77 Жыл бұрын
This ka matlab "Jis" . Obeying Hitesh's Sir Order!
@lokehirl
@lokehirl Жыл бұрын
Information rich and information heavy video, took a long to digest and understand, but after few replays.
@barunkumar3276
@barunkumar3276 Жыл бұрын
Reached at 22:19. Ye video meel ka patthar sabit hoga. Salute!!
@niharikabhardwaj4598
@niharikabhardwaj4598 9 ай бұрын
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 9 ай бұрын
good after some days you gonna understand even without inner concepts watching tutorials 😂 kxch ziyada to nai hogiya
@shadikhusain1216
@shadikhusain1216 Жыл бұрын
Thank you @Hitesh Sir. ❤ esi tarah video aayenge aur aese js topic milte rahenge to js mai mastery sach mai krr jayenge.
@divasbhadani9225
@divasbhadani9225 Жыл бұрын
one of the best tutorial on youtube. Thank You Sir 🙏
@aryanwolfox6390
@aryanwolfox6390 Жыл бұрын
Use of new key word for Constructor function and the new operator 0:00-26:00 Prototype 26:30
@SachinYadav-eh7vg
@SachinYadav-eh7vg Жыл бұрын
This JS series is one of the best Thank You Hitesh 🧑‍💻
@abdul_rab01
@abdul_rab01 5 ай бұрын
21:40 😆😆 best dailogue by sir!!
@SurajKhonde-tl1dk
@SurajKhonde-tl1dk Жыл бұрын
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.
@kaushalkishor143
@kaushalkishor143 11 ай бұрын
Thanks sir. your way of explanation is very nice. this video is useful for me.
@tech_channel110
@tech_channel110 Жыл бұрын
behtareen or shandar lecture hitesh sir ki jay ho
@imsiddhants_official
@imsiddhants_official Жыл бұрын
Really nice session😃 much appreciated!
@Pragramming-rd4kz
@Pragramming-rd4kz Ай бұрын
In depth knowledge + simple explanation = Chai aur code❤
@AnshuKushwaha-xz8di
@AnshuKushwaha-xz8di 6 ай бұрын
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,
@msdhaliwal
@msdhaliwal 7 ай бұрын
this is the one of the best videos of your channel 🔥
@nature443
@nature443 Жыл бұрын
Your Teaching clears most of thing ,Thank you,
@avinashjha7848
@avinashjha7848 8 ай бұрын
Awesome Explaination Sir
@GamingWithParamYT
@GamingWithParamYT Жыл бұрын
Sir You are literally doing great Helping many students who can't afford expensive resources ❤❤❤❤
@shubhtripathi4265
@shubhtripathi4265 8 ай бұрын
Thankyou sir for sharing quality knowledge 😁
@PulkitPorwal-v7y
@PulkitPorwal-v7y Жыл бұрын
Video Timestamps :- 00:00 Objects and Importance of new Keyword 27:00 All About Prototyping
@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.
@sureshbhatt363
@sureshbhatt363 8 ай бұрын
Thank you once again Hitesh bhai
@singhamita
@singhamita 9 ай бұрын
Thanks alot for creating such a simplified vedios and complete tutorial on internet.
@WebDeveloper-wt5tz
@WebDeveloper-wt5tz Жыл бұрын
I am from Pakistan. By watching this series I decided to accept you as my teacher. Thank you for such an amazing series!
@squad4play
@squad4play 10 ай бұрын
Ye ramayan ka saar bahut hi interesting tha, please continue teaching us in this.style 🤩
@srishtijha3
@srishtijha3 Жыл бұрын
27:06 prototype section
@dragononfire7124
@dragononfire7124 11 ай бұрын
I was so confused in this concept, now sir you have cleared all my confusions😍.
@RaviYadav_Dev
@RaviYadav_Dev Жыл бұрын
For people who are coming from Kotlin or similar languages, prototype function is a extension function for existing classes
@nehabansal370
@nehabansal370 11 ай бұрын
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.
@notai890
@notai890 3 ай бұрын
***Easier understanding*** Okay, so For function , "existing function name".prototype is used followed by new "new" keyword when function call to create function for object, object.prototype is used to create function for array, Array.prototype is used to create function for string, String.prototype is used to create function And "this" is used inside for that inside context always
@preetamdas29
@preetamdas29 2 ай бұрын
8:50 Function -> Object
@animesh1945
@animesh1945 6 ай бұрын
Chai pe charcha to ise kehte hain. This video is the best in this series. I Love this Charcha❤❤❤
@nmithileshkumar1919
@nmithileshkumar1919 6 ай бұрын
What an explanation sir!!! 🙏
@parthpitroda35
@parthpitroda35 Жыл бұрын
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 ❤
@dokodiaries
@dokodiaries Жыл бұрын
Very detailed. Supercalifragilisticexpialidocious. Thank you so much..
@kundandubey2401
@kundandubey2401 10 ай бұрын
thank you sir for detail explanation😊
@hamzasajid7973
@hamzasajid7973 9 ай бұрын
interesting examples and very well explained
@swapnildutta2104
@swapnildutta2104 10 ай бұрын
0:00 - 27:00 (New keyword, Objects, this) 27:01 - Prototype and prototypal inheritance and most imp part Jis === this ;
@WatchNotchK2S
@WatchNotchK2S 11 ай бұрын
bhot bhot amazing video sir , ab aur maja aa rha hai js padhne me
@subhranshu_sekhar
@subhranshu_sekhar 6 ай бұрын
Thanks sir. Prototype crystal clear 😊
@jast_aryan-13
@jast_aryan-13 Жыл бұрын
Sir ji bhhut achi series bnai hai apne or is prototype vale lec se toh bhhut knowledge mili hai 😊
@chaiaurcode
@chaiaurcode Жыл бұрын
To share b krdo to aur acha rhega
@jast_aryan-13
@jast_aryan-13 Жыл бұрын
Jrur sir kre gee
@nikhatansari3310
@nikhatansari3310 Жыл бұрын
27:00 prototype
@deveshsharma534
@deveshsharma534 10 ай бұрын
great sir as always. thankyou so much
@abhishekkushwaha3029
@abhishekkushwaha3029 13 күн бұрын
0:00 - 27:04 Object & new keyword 27:05 start prototype
@linux097
@linux097 Жыл бұрын
0:00 - 27:00 object and new oprater features . 27:00 prototype.
@kaynatkhatib1289
@kaynatkhatib1289 10 ай бұрын
30:17 : "Ap b chae rakhiyega sath main kafi kam ayegi" .. Meanwhile me watching this while fasting :P
@vimalradadiya5929
@vimalradadiya5929 10 ай бұрын
next level explanation for behind the scene working of js
@mohsinsiddique5158
@mohsinsiddique5158 6 ай бұрын
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.
Call and this in javascript | chai aur #javascript
13:06
Chai aur Code
Рет қаралды 86 М.
Object Oriented in Javascript | chai aur #javascript
32:03
Chai aur Code
Рет қаралды 192 М.
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН
JavaScript Prototypal inheritance - Tutorial
15:29
ColorCode
Рет қаралды 90 М.
JavaScript prototype in Hindi  | Examples | Interview Questions
27:31
Code Step By Step
Рет қаралды 35 М.
Class constructor and static | chai aur #javascript
26:36
Chai aur Code
Рет қаралды 108 М.
Lexical scoping and Closure | chai aur #javascript
26:48
Chai aur Code
Рет қаралды 119 М.
Web Developer Roadmap (2025) - Everything is Changing
21:48
CodeWithHarry
Рет қаралды 709 М.
Inheritance in JavaScript - Prototypal Inheritance tutorial
20:06
Object-oriented Programming in JavaScript: Made Super Simple | Mosh
1:02:49
Programming with Mosh
Рет қаралды 2 МЛН
Американцы красят асфальт?
0:27
BAZAR CLUB
Рет қаралды 188 М.
ЛАЙФХАК НА КУХНЕ ! 🧐🤦🏻‍♂️ #shorts #лайфхак
0:15
Крус Костилио
Рет қаралды 109 М.
КАК ЖИВЕТ КВАНТУМ? РУМ ТУР КВАНТУМА!!!
13:51
🪄Вечная спичка #diy #выживание #поход
1:00
Короче, ВИ
Рет қаралды 2,8 МЛН