Magic of Prototype in javascript | chai aur
Вставка
- Опубліковано 21 лип 2023
- 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 - Наука та технологія
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.
This is helpful..
nicely explained
@@PrachiMukati thanks
@@mr_professor_x 👍
Thanks you bro. did you start learning react ?
0:00 - 27:00 object and new oprater features
27:00 prototype
27:00
Bhai bole karneka... to karneka😅
Ab muje chakkar ane laga hai😂
same yar
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
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!!
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
@ 27:00 begins prototypal (inheritance)
!
This playlist is full of detailed information. It is better than alot of PAID courses out there.
Thank you Software Expert Hitesh Choudhary Sir!
Perfect In dept video that I needed. Many thanks explaining in such a simple way.
I never 'knew' what all happened underneath 'new'.
Mind blowing detailing explaiend.
The portion where we added custom function to all objects was really cool
Sir, this is the first time I could understood about prototype. Thanks
How easily you made me clear about new and this keyword with the prototype concept..... you really nailed it 🔥
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 ❤❤❤
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.
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
Mark my words, In coming years this video will be one of the reason of making this playlist best present JS playlist on UA-cam.
-धन्यवाद हितेश
Thanks alot for creating such a simplified vedios and complete tutorial on internet.
Thank you @Hitesh Sir. ❤ esi tarah video aayenge aur aese js topic milte rahenge to js mai mastery sach mai krr jayenge.
Best teaching style....jis ka mtlb this
behtareen or shandar lecture
hitesh sir ki jay ho
Information rich and information heavy video, took a long to digest and understand, but after few replays.
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,
crystal and clear explanation of this context. this means ''jis ne v bulaya ho'. All thanks to Hitesh sir. 😊
Hi can I get Instagram-id
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.
what a amazing lectures best lecture available on youtube or any other platform
what a informative video. Great work sir 👌
one of the best tutorial on youtube.
Thank You Sir 🙏
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
great sir as always. thankyou so much
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
This lecture is amazing . thank you so much sir.
Sir You are literally doing great Helping many students who can't afford expensive resources ❤❤❤❤
Itna depth aaj tak kisi JavaScript course me nhi hai.
Akshay Saini ka course dekho
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 😊
bhot bhot amazing video sir , ab aur maja aa rha hai js padhne me
Your Teaching clears most of thing ,Thank you,
For people who are coming from Kotlin or similar languages, prototype function is a extension function for existing classes
Really nice session😃 much appreciated!
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.
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. ❤
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.
Same here
hey me here also a English Grad !
@@DashinDanishbro whats your update?
@@kalsotraaditya98 Done with frontend almost.
Thankyou sir for sharing quality knowledge 😁
Awesome Explaination Sir
this is the one of the best videos of your channel 🔥
Thank you once again Hitesh bhai
Thanks sir. your way of explanation is very nice. this video is useful for me.
What an explanation sir!!! 🙏
I am from Pakistan. By watching this series I decided to accept you as my teacher. Thank you for such an amazing series!
Very detailed. Supercalifragilisticexpialidocious. Thank you so much..
interesting examples and very well explained
awesome explanation. thank you
Thank you, sir, for the in-depth js series
i watched both of the one shot but coming on every video to like them
Thanks sir 🎉❤ best series in of js with such a deep content in UA-cam
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 .
so far the best concept I have ever seen in JS
thank you sir for detail explanation😊
This JS series is one of the best
Thank You Hitesh 🧑💻
what an amazing lecture, Salute Sir🙏,
speechless, bow down to you sir 🙇♂
next level explanation for behind the scene working of js
one of the best Lecture and Concept in my life sir ,,the best........
Ye ramayan ka saar bahut hi interesting tha, please continue teaching us in this.style 🤩
Thanks sir. Prototype crystal clear 😊
I was so confused in this concept, now sir you have cleared all my confusions😍.
Thank you so much for going so deep in the leature
What a perfect shot to master
This is an excellent explanation, sir. I'm viewing for the first time, and I understand the majority of what I'm seeing.
good after some days you gonna understand even without inner concepts watching tutorials
😂 kxch ziyada to nai hogiya
Awesome video sir Thank you .
Aapka motivation kam hone nahi denge Sir ji
itna easy kar dete ho na sir ji aap, dhanyvadddd ❤❤💕💕💕💕💕💕
congratulation sir on 200k
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
You are amazing sir.
Sir ji bhhut achi series bnai hai apne or is prototype vale lec se toh bhhut knowledge mili hai 😊
To share b krdo to aur acha rhega
Jrur sir kre gee
sir, Thank you for this series.
too good, The Senior javascript dev level, thank you so much,
amazing lecture once again
MashAllah Sir G !
Kmal kr di ksm sy Thnks sir g for this great efforte for us
Love from Pakistan Sir g
Sir's teaching is great!
Thankyou Sir for making such amazing videos 🪄
Nice explanation 🙌👍
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
Anyone can help jab hum function ki jagah par Arrow function use karte hai toh score ki value undefined kyu batata hai ???
@@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
"Chai aur Code, you're the hero of my JavaScript learning story. Your tutorials are unmatched!"
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.
Excellent Sir . Kindly make some video of node js and express js
excellent video sir🔥🔥
PROTOTYPE EXAMPLE EXPLAINED BY YOU WAS NEXT LEVEL 🔥
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.
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.
❤
i would like to say this.teacher is awesome.
a great level explanations sir
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.
same
Same. Came to comment section just to check ki mere jaisa aur koi hai kya ya mai akela hi aisa hu
Finally Done ! ✅ Too deep.
Thank you so much sir....😇
Hitesh Sir ki Jay ho!!
Best series on UA-cam
maza aa gya sir ji😃
The guy is making the difference🔥
jiska matlab this, it was much easier to stick in my thick skull 😎 Thank you Sir... Love from Bangladesh
if knowledge is power then you have "superpower" Thanks sir for enlightening us.😍