Hang tight while we fetch the video data and transcripts. This only takes a moment.
Connecting to YouTube player…
Fetching transcript data…
We’ll display the transcript, summary, and all view options as soon as everything loads.
Next steps
Loading transcript tools…
TypeScript Domination - Full Course | Sheryians Coding School | YouTubeToText
YouTube Transcript: TypeScript Domination - Full Course
Skip watching entire videos - get the full transcript, search for keywords, and copy with one click.
Share:
Video Transcript
So before you start mumbling what is this
This is a water bottle, friends, put it on the side
But now I want to talk to you
The water bottle is still visible.
Keep it for yourself brother
Pet Kisshu Kisshu Kisshu This is a water bottle
It is settled and now I am talking to you.
So throughout this tutorial you will see
So in this entire video, actually we
Talking Introduction Tattoo Ty Scr and Hum
People will talk about what is this script?
People will talk about the benefits of type
Script over JavaScript and we the people
We will talk about type script vs.
JavaScript and together we are a topic
We will talk more about those type scripts.
is more important and that is
Why did Ramdev Baba tell you that
This is very important, it should be done like this
Friends, this is the trick to type script from this.
The absorption in the body increases by 1000%
goes and I'm telling you type
script before java script so
It will be possible to get out because the typed script
There are people who read, they need this thing, this
Rubbing nails against nails is very important.
And because of this, their mental capacity
It increases a lot, so there is a lot in this video.
Something is coming, now you hurry up with me
Come on, if you don't mind, and we'll
Let's talk a bit, come on, let's go.
Let's get started [music]
[music]
Well brother, I have come here to tell you this.
typed scripts for teaching and
What is the difference between JavaScript and
It's a simple difference, friend, understand the first thing seriously.
So this topic in itself is a very big one.
A video can be made but if you
You will tell me, brother, explain it in two minutes.
I can explain it to you like this:
Mainly one in script and JavaScript
Understand the difference, type script
A better version of JavaScript is a plus
From JavaScript in TypeScript
There are more features that you can get straight away
I can't find it in JavaScript. Okay, now.
I will give you a demo for example.
right now in a JavaScript file
Let me open that JavaScript file.
I came in here and I created a variable
a12 I made one b13 and I made another
Variable created ver a
13 okay so if you look at this
in JavaScript what you are doing first
You made A again made A it any
The language is incorrect and it is written incorrectly.
but is correct in JavaScript
JavaScript Will Not Complain About It
So a lot of this kind of mess
in JavaScript and this is because
JavaScript language very quickly
It was made in just 15 days.
It was created because the language was 15
If it was made during the day, there are tons of
things that's wrong with that okay now you
What can we do? Listen carefully.
has JavaScript language which
It is good, it has some features
It's missing, okay, okay, we'll see about it later.
Go to a typescript course
What's missing and type safety names
There is no such thing as type safety.
Let me give you a demo, let's go.
To the screen for example, we are here
Javascript file in a Javascript
The file contains a value of 12 at this time.
The value of a is a number and later
I changed the value of a there to harsh and
Javascript has no problem with this.
You have this problem in every other language.
It will come that brother, earlier that number was yours, not this one.
You can calculate its value later.
String it up, this is not possible, but
If you lift the code in TypeScript
If you keep it, it will complain, it will start
Complaining that brother, this is wrong, you are doing this
Can't do it, earlier the value of a was 12 now
You are hurrying up the value of a which is
If it is wrong, you will be asked to type clearly here.
String is not assignable to type number
Right then TypeScript gives you type safety
It gives type safety brother on this
So the entire course is based on these one or two words.
It is a complete course so don't worry about it.
We will discuss this in great detail later.
But the type script gives you type
Safety plus a few more features than
JavaScript so this is what's special in
Tap script is and remember to type
Script again I am speaking again type
The script is JavaScript only, improved
version plus a few more features that
Not introduced in JavaScript
Okay, so there is a lot coming up now.
Let's go where we want to read cool stuff.
Now I am taking you to where
I have to study here [music]
[music]
So tell me why I have come to you
I'm here again to tell you that
We need some things now.
I am going straight for what I need
We need a browser on the screen
We need something else, something else
We need a type script, sir.
and need to install a few more things
Among which are the extensions of VS Code
So VS Code and VS Code extensions.
Come on then let's go, let's go quickly
I'll show you the screen real quick so we
You can download it by clicking on the Google Chrome button.
Yes and then you can install it obviously
I'm not going to tell you how to install it.
But mainly installation and operation
The system is quite simple
What we have of the browser is brief
This is the browser I will be using.
You can also use this if you want Me
Google's Nut Jaye Sir, what is this to you?
You will have to install it because it will basically not work.
Our TypeScript code compiles from here.
It will be in the JavaScript code, okay?
So the type script code we will write is
It will not run the browser directly.
Because the browser type cannot run
The code of the script is displayed in the browser only.
can run JavaScript so Nut JS
Because of this, understand that we are converts. do
do Our
It is because of Nut GS that we have our car.
Converting TypeScript code to less
You will get good directly nut not GS
Will convert it to something else, TSC name is
TypeScript compiler from But Nuts to JS
With the help of TypeScript compiler
Install and use Nut JS
We also run our JavaScript file
In the future, you can simply install No Jas.
If you want to do it then download it and
Basically, just like it is installed, you
Install it on your operating system
Okay, give it to me on type script.
Let's talk about VS Code in a minute.
There is another software called which will let you
If you want to install it, you can come to VS Code.
We will open the first website quickly and
Here you will see the download button with love.
By pressing it we will install it, okay
Yes, VS Code is also installed now.
Let's quickly come to the type script.
Download TypeScript and everything else here
It is written on their website that you will get nothing from it.
I have to do this, I don't know why I opened it.
If it is done then we will stop it and we
If you want to go to VS Code, then come to VS Code.
VS Code Get started VS Code Our
That's it, okay, now listen, this is VS Code.
If you just installed the latest
So you go to the Start menu in Windows.
Otherwise here in MacO, Command Space
You can search on Spotlight by pressing
VS VS Code There We Go and That Will
Start the VS Code great here you are
You can open your folder etc. I will open it.
I'll do it and see you later
You can also open your folder inside the folder.
Here, on the desktop, you can open any folder.
How to open it on the file while making it
Go click on open folder that will
Select Prompt a dialog box and
Then open it, simple as that's fine and
What do we have to do immediately after that?
We need to use the TypeScript compiler here.
Installing is what we are going to
Do Now Let's [music]
[music]
Go here's what I did VS.
I opened this folder in the code, you will see
You can see this here, right in this
I have put the syllabus etc. in the JS file
And type script file later on
This will create these two files for now.
If I remove it then there is nothing special
There is just one syllabus file available which will help you in
That syllabus has nothing to do with me.
That's all I have to teach
Topics are written in it, please friends do this
Don't say you didn't give me the syllabus file.
If you have seen it, I will not give you money now.
I will give you the money please friends please
Don't steal, let's go now.
Who will install that is type script
How will the compiler of this work do it, sir?
To do this, open the terminal.
How will the terminal come, listen, how will one come?
Wait a second, so you have to go here with your
On laptop, press Control + Back Tick
Which back tick, what is this, back tick one key
Control Back is just below the Escape key
Take this will open in case there is no top
There is a pay terminal, I swear I have these
If I can show you the case, there is a terminal on top.
There is a terminal on the top here and here
It is written on it New Terminal Just Click
on that that will give you a terminal okay
So this terminal will open up, one great thing.
Just remember if you select New Terminal from the top
If you do it again and again, here on the right side
If you look at the right side here
New ones here again and again on the right side
Terminals will keep coming and going, so if you want
If you can delete these, I will do it again and again
Control back take instead of doing new terminal
I'll press OK and open the terminal.
Yes, so that was about it, now let us install it.
Let's quickly type our script
The compiler whose job is to type script
Converting Code from JavaScript to
So you will write here N PM
Install Type
the script is ok g minus gee and like
you this
will do this will install type script
For you, remember to connect to the internet.
Zaroori Hai and there is some issue with
This permission is denied OK sometimes Mac
If the permission denied command comes in
In the beginning, write sudo super user
do and if you press enter I will
Ask you the pass enter password and that
will install the package simply as that ok then
What has happened to our package at this time?
This package is installed OK
installed with the name TypeScript and
It is installed globally, which means it is installed on your laptop.
If it is installed then type script.
The compiler is also installed on your laptop.
Now what is the benefit of this, I will quickly tell you
I will show you, studies start from the next video
Look at it, see the benefit, there is a file stuck
Okay, we went and wrote the code in it, a key
The value is 12 and we've compiled it here.
diya kaise tsc ka run kar ent ts it
And you might say that this did not work, friend.
Brother, this is not working, look, this is not working.
Let me show you what's going on
So with tsc if I also change the file name
Let me write what is happening here again.
A new file is created and there our
Our command code has arrived, right?
So there's a lot coming up that we have to learn.
So don't worry about it from the next video
Let's start studying [music]
[music]
Start, now you have one more thing to do.
First, install some extensions.
Open VS Code here here here
The option of Extensions is visible on this
Click on Connect to the Internet and End
We need some extensions, I already have them.
I have installed it, you can search here
We will have to name the person who gives us the first extension.
I want his name is Lint, he will help.
All extensions will help us
Reporting errors during development Right
Right
And besides that we need one whose name is
JavaScript inspired TypeScript
That will also enhance the type script
Power You Can See This Is Microsoft's Own
Plugin is ok and type script also
If it is from Microsoft then it definitely works.
Together and they work good live server you need
This is fine, besides this there is material
Icon Theme If You Want You Can Use This Age
Well it's a good tool, okay, and then you need
Pray your Pray will help us to pray
We will get proper formatting and preter
Ease Lint If You Want That Works With Ease
Lint Properly and Pretty Type Script
Error you need this in any case okay so
You need these plugins, what will this do for us
The development process will be quite similar.
Whatever I write, whatever errors I see will be like that.
You will see it right when we work
So it will sound very similar, similar, similar.
You will know everything I am doing
And I know you're doing the same thing.
Yes, you understand what I am saying to you
Don't lie, don't lie at all, tell the truth
Tell me whether you understand or not, understand.
If you are, go down and click the like button.
There is a like button on our platform too, brother.
Go down and like the video, so now I
I am taking you for studies, let's
Go will create a type script file of type
The code for the script is to type script.
I have to start studying as per the syllabus
Let's go brother, let's start. [music]
[music]
Hello dear friends, my name is
Dhruv Rathi and today I will teach you type
script setup so in this video today we
Those who are going to read it should first look at the setup
Yes, it is quick, so the setup is setting up.
A TypeScript project cuffing t k g jn
In compile type script so friends today
who is our instructor in the session of
His name is Tony Stark and he is going to introduce you to me today.
I'll teach you how to do all these things.
on your laptop, so first of all you
What you have to do is create a file app.tcs.com
That is, we can accept any valid
The JavaScript code you write here is valid.
Type script code is the end of the matter, meaning no
also write the javascript code here ok
and if you have written the correct code in JavaScript
If you write yes here then it is a valid type.
Script code is good, so what we mean by
The code of GS will take that valid type till today
The script code is perfectly fine, so the error
No errors will appear, warnings will appear and
Errors will also occur, those errors are true for your code
Will not stop the majority of type scripts
Errors may cause your code to still compile.
I will explain everything to you now, you just watch.
Keep typing the script here and you will get an error.
will show but the javascript file
It will compile it, meaning like you have written here
Yes, I have written something wrong which is in type script.
It is wrong according to the calculation, right you said compile
Do it, compile the typescript code
convert to JavaScript code
okay so what will happen then so
This would be assuming it's wrong, some code
I am wrong, yes, okay, still convert.
Even if it gets converted, it means
It will be converted, yes this code is like
It is written correctly, yes it is written correctly
This will convert
Yes, now it is written wrong, now it is typed
Script Types Script Types
is written incorrectly because Ver 12 Ver 13 twice
You can't make it or else let's make it
The value of is 12 and the value of one here
We have set Harsh, now it is written wrong.
It is clearly written wrong, isn't it?
If I tell TypeScript to compile
If you do this, you will definitely get an error but compile again.
The file will also be done here, see any JS
Is there any JS file?
If I run this command and press enter
If I press then the file still compiles
You will see this, still the file will be uploaded as can be downloaded.
That UC code here, the same code here.
The code is here, so type script
This is the scene with Sir, if you have any error then write to me.
But if you pay attention to the error
If not provided then JavaScript file
Even if it compiles, it will be a valid file.
No, it is saying there are errors in it.
Do you understand type script?
I tried to stop you and you said shut up so I typed
The script will say okay brother sorry
You go away, it's more like that, so type
The script is a bit lame in this regard.
So wherever you said hey shut up then type
The script will speak
Okay, go ahead and type the script, nothing to you.
She will tell you to let your file go.
will compile it and as soon as the file is compiled
Then you will know that your code is faulty.
So that is what we need to take care of
Okay, so what should we do?
Setting up a TypeScript project
So how do you type a script project?
It is set up, nothing special happens, just a file
Make it yours and together we TS Confine
We will have to make it, which we will see now and Ts
About It Make sure you have
npm install so npm installed
We have node installed ok g node
Bad option ok node minus minus version i
Believe it or not, node is installed and
TypeScript is also installed.
Believe okay so we have all three
Installed it's about it here
You can say that there are limitations
The requirements are right, so setting up a
TypeScript Project Just Create a
File Right Now Just one file for now
Make it coughing t cough jan what is this
TypeScript has settings, meaning you
Do you want that brother, not at our place?
Do not run any variables that have
I haven't defined the value or something like that
Do not run any variables that I have
So somewhere in the entire code this a
The variable is not used in the entire code.
If you don't use them then stop them, that is an error.
So where will you tell this setting TS Conferral
I mean, I'll just tell you one more thing, like
You said there is a function, it is a function, okay?
Yes, it is and we have AB CD function.
Let's say okay, you said brother return
What we're doing is returning a value of 12.
are you okay okay you said no
No, not any such function.
Run the one in which we pass the tap, then its
Where will you change all these settings?
Settings you will find TS Confine TS
How will the conferral come, it will come TSC minus
minus it so you write this and you get the file
You will get to see Just Like That and the like
As soon as you press enter it will create a
Well, what about the file on some people's laptops?
If this is not made directly then something will happen.
An error will appear especially in red colored windows
So what you do is write a TSC.
write minus minus it write it press enter
That will 100% create the file in case anyway
It is not working, check if yours is
Whether TSC is installed or not
minus minus version and if its version like this
If it is coming in writing then it is fine, otherwise it is not
So you run this command type script -
g and I am getting an error right now
Because it doesn't require me to have super user permissions.
Asks for it so I'll be giving Super User Permission
Thatchi Pass TypeScript File Ready
Of course we have TS Confide and
Compiling TypeScript is Extremely
Easy to compile any file
To compile TA you just need to
Name the do this tsc file
Thatchi and let me tell you for example if
You just ran the tsc command tsc
And you press enter, that will still happen.
Make the app.js File So You Don't Need to Worry
You just need to write your full name.
If you write TSC also, then that will also happen.
Create the you can say a file ages for
You are right, understand one more thing if you
I shouldn't have to compile it again and again.
I don't want to be like I'm a TS guy.
Write the code and then compile the TS code.
I want to write it and then compile it.
If I keep writing code and it keeps compiling
For that there is TS C minus minus Vach
You should remember this already, if I
I've run it, so now I'll write the code here.
I'll go and give you a demo.
Wait, let me give you a demo, so I'll just give you a
I will give you a demo in a second like this is AGS
I opened it sideways, okay?
Now I will write some code here.
value 12 and I will save it there you
You will see that the function will change automatically.
a b cd and log a you will see then there
Pay automatic change ho raha hai so that is
What I Want to Teach You Code Here
Write your TS code here.
Write it in JS and it will automatically be written as
In case you want to see how I
If done then open the TS file and
Open the JS file in it, if it looks like this
It is slightly visible in italics
This is written in italics and this is written in italics
If ever in italics
If you see it, save it by pressing control s.
So this will be straightened out, okay, what should I do now?
What should I do now? Listen carefully here.
There's a button here, a button on one side.
If I cut, show me your weight a little bit.
You have to zoom here is the button or this one
The button is Split Editor right so if you click on it
If you click on this, you will
This one shows your AGS file on the right side.
If he opens it, I will close it here.
My TS is open on this side.
And my GS is open on this side.
Now I will write some code here.
I will delete and save, the change will be done, remember
It is important to save in these cases like you did here
If you write the pay code and do not save it, then this
Compilation is not automatic on this side.
okay so the first thing you need to do is save
For this you have to go to the file, the file is at the top.
You have to turn on auto save there.
If you turn it on, your file will be saved automatically.
What I mean to say is that
You write the next line and you leave it like this
So it will be automatically saved and there
You will see the changes immediately.
So how are these changes visible immediately?
Now understand the complete network, we write it in TS
I am writing ok, automatically save
It is happening, it is happening and here the command
We ran TSC minus minus on the terminal.
What we mean is that this is my file.
The meaning of watch is happening is watching is happening in this
Any changes that come will be compiled automatically.
Where will we go? Why in the heat?
Because its name is TA and we already
I have read that data is converted and compiled.
app.js will be created, so just make changes there.
Will update as I made this
I made this, this, okay, and here
If there is a spelling mistake then as you can
See's about it so you'll see it's real
There are changes taking place in time and
I will close the terminal. Obviously I
Don't need it so I change my name here performs
performs
I will stay there and I will see changes
If you see this plane
is JavaScript and is a valid type
Script code is no issues at all right so
I believe you are compiling and creating TS
Creating a file TS
You must have understood everything well, now you and I will go
Ask about something very interesting
what is that to study again next
Let's go to the topics and start [music]
[music]
Yes, so brother, let's start with the basics.
Reading types contains primitive types
Number String Boolean Array Tuples Nums Any
Unknown Void Null Undefined Never So Much
Now you have to read so much, sir.
The video will be long, not this video.
The section function will be lengthy because there are many
It is good to read in videos, remember one thing
Ask if you want to keep this type script.
I will keep giving small pieces of knowledge in every video
All the videos that come in are small
I will give you knowledge type script
It will take more time to learn than JavaScript.
I am for sure but my brother
It will not be worth enough for you, you should understand this.
Will you work in any company in the future?
They're going to go and use typescript.
Now you have a JavaScript in that company.
like javascript you a javascript
You are taking the language then you will understand.
Okay, type script, okay, right here.
This happens, that happens, a different headache increases
Went there and reacted, thinking that it was a type
you are getting my script
Point right, what have you made of this interface, read it.
I am sitting and watching, oh friend, this, this, this
Why is it written T less than this angular
Why are you writing T in brackets?
I'm still not understanding what generics are.
I don't understand what is happening, I am having trouble
I am unable to understand the pattern
Brother, when you read the typed script
If you go then it will actually help you in
Your future work will then be based on typed scripts.
If you don't understand the code, it's your second nature.
Your work is done, which is the code of React
I want you to understand that
People should not shy away from putting in this hard work.
Kataraye Na It's Time We Should Start Let's
So let's go, we have a screen here.
Everything that needs to be read is written in front.
it's time we should start let's go
First, let's start with the basic types.
Look brother, understand one thing, all the data in the world
is of some type and hence the concept
The name is data type ok yes data
Now what is the type of data?
It is possible that both of them have the same number brother.
If you look at the number, it's okay.
Even if you write it in big letters, it is still a number, isn't it?
One is typed, it is the number, right? and the other
Characters These are all characters P a
The character is o one The character is l one
The character i is the character c is the character and e
character is fine and one happens
String if characters are written together
So happens string spelling if in case
If you want to know then the string is fine
We move ahead with this belief, we move ahead with this belief
Yes brother, there is one type, number one type
There is a type of character
String Okay, and what happens, true or
Lie, true, false, this is also a type.
If you don't know about these cases then all these
Types are also in TypeScript and these
It is divided not directly but into two large
One of the parts has a name
primitives and one is called reference
So unless you read their concepts
And until we understand, sir, we will not understand this.
will come to what primitive means and
Reference means studying their concepts
It is very important, so now I will tell you first
I'm going to teach you that's primitive and
reference okay so in this video it
Don't count videos, count in your mind.
To do this, just read Primitives and References
Let us first take it and then study our concepts.
Sir, we will go after writing above, okay let's
Go to primitive reference story something like this
Yes brother, if I give the value of a as 12
You and I are playing sports, we said
The value of a is 12 and the value of b is a. We
If you are playing sports in your childhood then now you
The conversation is going on, I said friend of a
The value 12 b has the value a then I said
I added two to b so I said b
If I tell you the new value of , you will say 14
I will say tell me the value of a, you will say 12 and
Brother, it is common sense, same in computers also.
Same common sense seems same so if a's
value 12 and the value of b is a then the value of b
Increasing the value of b by two gives the value 14.
and the value of a will remain exactly 12
right conversation but now I'm going to give you another
I show you the concept of computers.
There is a concept, its name is hey
Programming does not happen in computers
It happens in type scripts too, hey, it is ahead
If we go and find it, it's all wrong.
Now look, it is written above and the topic is also written.
Hey, we just want to see him once, right?
Very well done, not in much detail, but from the top
We'll take a look at the top and then take an overview.
After that, the separate topic of Arez is complete.
At that time we will see our arrangement properly.
But right now, Claire, we have it here.
What is a variable that is an array?
Now this is the system with hey brother.
Sir, one friend is here, five people each
I wrote down the numbers, now hey would mean
If you want to take more than one value then one
We have taken more value here than
I'll see more details later, for now.
Just accept it, hey, it's okay, something happens.
Oh, and I said the value of b is a, so a
The value of b is 1 2 3 4 5 ok and the value of b
The value is a, okay, so both a and b
Values are 1 2 3 4 5 Yes OK
Absolutely, okay, so now if I start with b
Said remove the last member, last
If you remove a member, what does it mean? Who has been removed?
I told you to remove the last member.
I was 1 2 3 4 5 B removed the last member
So the new value of b is given by
The value is 1 2 3 4 because the last member
So removed yes then the new value of a should be
should be 1 2 3 4 5 and the value of b should be
should be 1 2 3 4 because only b is removed from
That is absolutely correct, but it is
will not happen how will it be in B will remain 1 2 3 4
And the remainder in a will be 1 2 3 4, meaning you have B
removed from no yes yes so means in A then 1
You have to understand why 2 3 4 will survive.
What is the full story about referencing?
Yes sir, this is the story, that's all for now.
Understand that these guys in brackets are three
Brackets are these three on our keyboard
The guys in the brackets, if you
used, yes, means used them
Kiya means it will come now if it is applied
These three brackets were placed, any of the three
If one is entered, then that is the type of the value.
reference is its type reference so if
If you make any changes, it will be on the parent.
Yes sir, I am not able to understand this properly, I will understand it.
It will take some time and if there are brackets in them
If you don't like it, it's primitive, let me demo it.
Let me give you a demo I'm here
I will write pay value, a lot of value
I will write them, you will find the brackets in them, okay
What will you find for me bracket if
If you find a bracket, you will say reference and
If you don't get the bracket, you will say
primitive I wrote the first value 12 then
I wrote Harsh, then I wrote Sharma.
Then I wrote let's say huhu again
I wrote true, then I wrote
this and then I wrote this and then I
I wrote Apple, then I wrote True or
Then I wrote 12.34 using false letters.
Then I wrote, let's say this is fine now.
you will tell me
primitive primitive primitive primitive
Why do I find primitives anywhere among these?
I don't see the brackets, do you?
Reference primitive is not coming
primitive primitive reference so this way
We recognize the values from this Sir, you
And can you give a good and clear demo?
I can give it to you, why can't I give it to you?
I've taken the value as 12 for now.
Check the value, the number is the value of a
What is a number? Yes, it is primitive.
means it is primitive, yes it is primitive
Now we will talk about that further, it is primitive.
If there are any other references, we will talk about them further.
First you learn to recognize value.
Okay, okay, right now the value of one is true.
Yes, we are so yes, this is primitive, okay.
Okay, it's primitive, so what are the advantages and disadvantages?
It means it is primitive, so what does it mean?
We'll talk about that soon, but for now, a
The value of is True and True is a pyramid
The value is okay okay and good so if
Like I wrote 69, sir, it's my favorite.
Let's say the number is 69, I like it very much.
number okay I don't like you like
Yes, it's okay, if you like it then Ankur also likes it.
like okay so I like this number a lot
And you say what?
primitive ya prem primitive aap shar me to
Shar at 200 okay okay and if I did this
If you write it then it is a reference.
is is
Yes, okay, what is the reference?
Sure sure brother 100%
Guaranteed, okay sir, if you are saying so now
Tell me the advantages and disadvantages quickly.
The disadvantage is quite simple, you can
You can copy the reference directly.
Cannot copy anything else directly
Methods are used, meaning it is at this time
Say the value of one, say the type of 12 12
primitive na na in the first number number etc
Tell me what type of number is it?
primitive okay so 12 primitive yes
If it has brackets, it is primitive.
Yes, okay, so we can copy it directly.
You can absolutely copy something like this.
If you want, you can copy it directly.
There is no problem, just copy the reference.
No problem
Okay, and I mean, those in brackets.
You cannot copy them directly.
Why when you copy them, you copy them
It doesn't happen here, you might be thinking
that A is copied into B, then both B and A
The value of B is not false. The value of A is
The value of A is not The value of B is A
So if there is some change in B then that
How will it be, it is very simple, you copied A.
Yes, it will not be copied because
If the bracket is attached then it is not because of the bracket
He is not actually her type.
You can identify it by the brackets.
He liked it so much that it was not a copy.
So what went into B means B
I just went to a reference and said this
From today my house is your house too.
Your name is not on the registry.
I just said it, the speaker said it.
Promise given sort
Off so there's a fairytale that B has
fairytale that we're okay b I'm I'm a
B is saying, hey, these are our own people.
No problem, you said, well, our own people.
Yes, that's fine sir, do one thing, your
If you give me two numbers from inside,
B will not give two marks from his side. B will go and
will give two numbers from one to A so this is
The story is, sir, so these were the primitive and
References and now I'm taking you
We had to teach a very heavy thing in front of us sir.
It is written so now when I am using primitive type
If I speak to you, you will recognize me and understand me.
Now when you teach, you will get clarity.
Sir, from the next video you and I are leaving.
Keep making notes on the next video.
Don't move sir, let's go [music]
[music]
Come on brother, now we are here.
Basic types study quickly.
It's simple, friend, this is also very simple.
No, it's pudding, okay, let's go primitive.
Types: First you should understand this very simple method
before even before this, see that
How a variable is created is the same way as var
That's the way it is, and that's the way it is.
are in JavaScript okay so
There is no real difference in the methods, but
We will no longer use Ver.
What we will use from will be let and
Const sahib, this is our new way.
Create a variable in JavaScript
to create the end constant
So this is what we'll be using because
When you move forward in the industry
Everyone uses this at Sherris we who
We also develop it, we also use it.
So that's all why it's a good habit from now on
If you learn then it will help you in future.
Let's start studying basic types.
The first chapter in Primitive Types is Numbers
How numbers aren't everything is pudding anyone
Brother, give me your number, this is his type.
Numbers in case you don't understand them
If you move the mouse over the variable, it will appear.
what is its type what is the type of A number
Now you may think that sir, this is
It might not even happen in JavaScript.
Lord, it wouldn't be possible if I stayed here
Come and do everything, sister is going on
When did the fight start happening here, yes brother?
Here the type of A is the number you can clear.
You can check it by hovering the mouse here.
The type number of A is for some reason we have
I made changes in JS here so I
Let me show you something, the type of a here
There is also a number here and I don't know why
The number is showing but this is wrong, okay
This is a little wrong, but overall it is okay.
Just understand that if you change any variable
that some value is given which is numeric
If there is a value then the batam should be its type number.
For example, you have kept this value
This numeric value is clear friend so a
What is the type of number? If you
Put a value here in which
If there is a character then its type is automatic
It will become string so you can see right
So this is what type script is all
About so I mean to say type script
It is of great interest to know that your
Why is it important to know the type of a variable?
I am interested in explaining that a
The value 12 is the type of your variable
Automatically set, has it been set?
This is the number, now you can go ahead and find its value.
If you change then type script will be in Hindi
I will explain that you are doing wrong brother.
Because its type is set to automatic number.
and now you put the string in there which
That is wrong, so type script should be
I am interested to know that brother, you
I told you the number first, now you enter the string.
This is wrong, you will always remain number one.
Thatchi so read this you as I have a
Created a variable or CD, you can set it to false.
If you can, its type is Boolean
So if I go here, you can clearly
C Boolean Boolean means True
And the fallacy is just this simple, sir.
This is a conversation, I believe you must have understood this. Let's
Move to the next one, let's go there quickly
P also learns [music]
[music]
Brother, let's come here now.
Arrez pe Arrez is a very simple topic
There is nothing special about the let arr variable
Whatever name you keep, keep it AB CD, keep AB
Keep the CD, I have kept the ARR.
It doesn't matter to make arage
In JavaScript you have to create
square brackets and this becomes hey now
We are only taking the upper view in these cases.
It's okay if you don't understand much
Just look at the shape of its square bracket
Hey, we call this making.
Black Hey if you have more than one
You can also enter the value.
If the tooth is fine then this has become a reason.
At this time there is one are and that too is number are
You don't get this in JavaScript.
What can you do in JavaScript?
Now here you suddenly write Harsh.
Now you might be thinking that friend
We have written here also and even our
The file has been compiled, is there any problem?
If there is no problem, sir, you will see it now.
So when I show you the type, it
Datachi does not give variables but script infer
She figures out exactly what her type is.
If yes, then go to the future and type us now.
I want to read further and how the operator
Will read in advanced types and union
What we call the intersection is called V.
You will be learning about them then you will get more
You will understand but it is very simple to make.
Square brackets as I just mentioned
Put it blank, hey, it is ready inside you
If you want to keep the values, you keep them, so let's
Basically, if you suddenly do something like this
You place value on
If there is something possibly sort of different then this
We have created an object in case you
If you don't know then the object will be all later.
You will see, but if you look at this time
A number is either a number or an object.
in which the value of name will be string now
If you look, it is either a number or a one.
object in which the value of name is a
should be string so if I do another
create object
where the value of name is not a string
If there is a number, now if you look at it, its type will be
If it increases then it is either a number or a
object containing the value of name
Spring will be either an object
In which the name key number will be there so you get the point
Right, if you want to stop it, you call it that.
No, no, sir, we want to stop it.
We want you to be just like this
This is just a number, hey if it is there then
You see, I will teach you just two minutes.
I will teach you what I am writing here.
It's okay, so far there are no errors.
But if I go and write Harsh
Sir, now the error will start coming because
I told myself this number is a car now.
How do you say all these topics like this?
I will see you after reading it, okay sir, next time
But first this topic in the video
Don't finish everything after finishing the topics
Then we will see, we will type from our side.
How to define type script and
If we read that, it will give us a lot of control.
It will come to us, it will not be typed
The script is doing as it pleases and we are in control.
If you can do things then they are coming first
with tuples then nums any unknown void null
Undefined Never and then sir will read what
We had to read Let's Go [music]
[music]
Come on friends, let me sing you a song.
to ever Sometimes
Aditi feels like someone of her own in life
If it goes astray, it seems like a dream
Why am I doing wrong Ankur Bhai?
This sounds like a song I've heard somewhere.
It seems like you guys have heard this.
If you don't feel like it, then you should
You have to work, ask what you want to do.
You have studied well, right? If you have studied well
If you do this, you too will be able to become a singer in future.
And now I'm taking you to study.
That's why let's go, we are here
But Ares has come to study, after Ares
Obviously and Arez we have already read
If you have come to read the tuples then after Arij
We have tuples. Tuples are nothing special.
It is just like array, you just need to understand the syntax.
You are here, hey you made it, so where are you?
You can write anything in between.
If you want to put joy, you can do it.
But what are tuples, you tell me in tuples
You can say that brother, we have only these two elements.
will remain and what will those two elements remain brother
Brother, you will tell me, look in front, you said that your
This is oh okay, yes oh you have oh
I have made it, I have made it, this name that you write
You can name the variable by prefixing it with
You said, hey, I am my first man.
will be the string comma second band will be the number
Okay, so here you have the first guy.
You will have to give the string to another guy's number.
First I gave the string and put a comma
If the other guy gives the number then this is what happens
Tuple means fixed size and that is
Can you hey in which place what
If I have to tell you that it will come then it is like this
In which you can fix the size clearly here.
Write it down and also provide its location.
If you tell us what all will come, we will
Tapal says now as if something is in your mind
The first string will come with questions, so we have the first
string given second number so we used second
Sir, I have given you my number but I will not give it to you.
Let's give you the first number, the second string
If you give it then an error will come here.
It is written that type number is not assignable to
Type string This is the number you provided.
is not assignable is of type string
Sir, there could have been two more examples.
All will be exactly error to me
I have to make it here, I did not think about it.
No, hey, then making it the first number will be the second.
If the string is fixed then I will have a tuple
I can make it, so I said friend, number one will be
will be
The first number will be the second string.
It's fixed, I know it's fixed, okay?
If so, I will write the first number here.
My 12 is the second string
So I wrote Harsh, okay so this
The tuple is formed in the following way:
after the bracket containing the colon
Put both the number strings as you have told
The story is done sir, so we call it
Tuples okay so that takes us to the
Next part: Let's do instant enumerations
If you don't enjoy reading, your money is back here.
from Lets [music]
[music]
Brother, he brings this elder brother.
Important topic, its name is Inmus, Nams
It means sir Iresh so brother this
This is a very difficult word in Hindi medium.
Those who study and write something else like us
People are for them
It is a very problematic word because it is very
I can't speak properly but it's okay Namish
What does it mean sir, you should understand it like this
When placing the value in a key value pair
If you want to read the object, you
It is a little bit like that, but it is a little bit
Comes with special powers, would you like to see
First of all, you see what I have written in my mind.
If I come, write that down for example.
Let me write the user roles here.
I've seen it used casually
And I have done it myself, so let me explain it to you now.
Wait a minute, come with me first, are you okay?
So I said, friend, what is there in the user rules?
I must have it brother, I said friend.
One of the user rules will be Let's say to me
It will be admin, okay so I wrote admin
I took it sir admin and I said ok sir
I told you what its value would be.
Let's put its value as 12.
by the way will use equal
Its name became admin okay and one be
Gaya sir, I said it will be for one, it will be for one
If I become an admin, I will say let's say
Guest, okay, the guest's value has been met.
The value of the guest has been achieved, brother, the guest is fine.
and I have to write all this in small case.
Okay, and I will have another brother who will be super.
Admin, okay sir super admin and this is me
Brother, I have given its value to Super Admin for
If there is some region then I have a back end project.
I was making tell me user rules three
There will be only one admin and one guest.
The reason will be super admin and double quotes it
I won't keep it that way
Remove it, okay, so now I will move on to the future.
Whenever I go and define user roles
Don't forget me, I will write directly to you.
I will put rules dot all here for me
All three will be visible and I will use them accordingly.
I can do it, Super Admin, I said brother
Its user role is super admin.
Yes, okay, so this is how the name is used.
Now no matter how many of your own words you have inside you,
You can create properties
here and then set up their values
You can do it sir, okay, here.
I made another one from let's inam and
I said status codes brother status
codes I said developers you guys remember
Don't keep status codes, what are they?
What is the value, you can just pick it up from here
It's okay to take it whenever you feel like it.
Brother, something is wrong here.
If you want to start with LETS then you can do it here
But choose this
Now it's fine and I set its value.
Assuming the given endon endcode status code
F is fine for now and I said one
Make not found into one, not found into
Brother, you should use this status code 404 ok
This is how I have made them all.
Tomorrow, whenever you need it, you
Status codes will be marked "Do Not Found"
And that will take this value as a
Input right too much if not understood
If it is happening then understand this friend, in the future when we
Development is done on the React or Node side
So in many places we have no pre-defined
Companies have to put in inputs on a
You can call it particular pre-defined sets.
This means that the company will use
He said brother, the error codes we have are
Now we use only 500, 502 and 503.
You may be coming from another company.
504 was also used there for some reason.
So now you have a habit of writing 504, right?
If the company does not want this then the company will
Clearly, a sheet will be given in it, there your
You will have such a status here.
For example, you will have something like this
Bhaiya status kud status
Now you will clearly see the dot itself.
If found then you can use not found now not
What is written in the found is written there
What has happened is clearly that the company knows that
Is everything there? Is everything written right?
The main use of numeration is that you can sort
Off key value pair but it's a little bit just
Brother, keep one thing in mind when you are in Nams
If you create an enum then after the property
The equal sign has to come, sir, okay, so its
We have to take care of it, well by the way if we
What if they compile it with let's?
Let's see if it's possible, come to our AGS
If I come, some very dangerous code will come.
Gaya sahib so this is what enumeration do
If you are creating a name then this
How our JavaScript is built
In plain JavaScript, this gives us
We didn't have to write what we had to write
Just write Nam Inam and then write the name Nam
Under what name are you making ration in the future?
Wherever you want to use it, user roles can be changed.
Create and put a dot and whatever user rule you want
If you want it, you can use it as simple as that.
Okay, so this is how it works now.
We'll go to any unknown void
Undefined Never Pay and I am telling you one more thing
Hmm Nams P, don't mumble, go ahead and work.
If you do it then you will understand better that Namas
Sir, now you know what is the exact use case of
You will say brother, I don't have to understand everything immediately.
So that is not possible, it is programming.
Tax time, yes, so now we are going.
let's go let's [music]
[music]
Go on sir, let's start quickly, any unknown
Simple calculation for void null undefined never
It is very simple, understand that when you add a variable
Create it and you don't have to type it.
Specify or do not assign a value to that is called
Okay, so first of all, let me teach you
That is how you tell type
The first thing is quite simple.
We will understand what type is and how to type.
If you tell me brother, we have it for example
From a let's have a variable a and we first
It is already known that its value will increase in the future.
If there is a number then we will calculate it here.
Can you tell me the pay type?
Yes, it means that we have said that
Bhaiya there is a variable a and its value is given below
I will go and get the number, okay sir, this is typed.
It's okay to tell me now that the numbers have been announced, not later.
I will definitely be there, so go ahead and you will never
If you give any number then anyone can type the script.
There will be no problem, okay sir, okay and
Like if I go back and don't get the number later
If you give it and make it true, then you give it a bullion.
Then there will be a problem, this is what is coming up.
Boolean is not assignable to type number
Because we have already mentioned that a
What is the number? Okay, I understood it, sir.
If we made a value a variable
a and it was not given any value and
If you haven't given any type then its bye
The default type will be set automatically.
name is annie annie type only then set
happens when you have a variable and
You gave him there, you gave him there
I haven't told you what its value is.
Let me explain, listen, you keep the value of a as 12.
If yes then its type is never set to any
Why would it be because after seeing that number
It recognizes that OK, this is the number, so the number
It will be set but if you remove this also
If you are not telling anything to A then A's
The value is undefined by default.
what is its type its type is any any
Meaning you can save anything in it.
If you go ahead and type the complete answer, type
The whole purpose of the script is to
Neither do you have to keep the user constrained
The programmer has to be constrained
If you don't want to let mistakes happen then that's the whole purpose.
It will be defied if its type is any
If I say one thing in Hindi then anytime
You need to make sure that your variables
should never be Annie's type
If you don't have any, then make yourself this thing.
I have to make sure, okay, right now.
So if Annie is there then it means that going forward
You can also set the harshness and type
If the script doesn't have any issues with it
If you put the value of a as 12 then there will be no problem.
If you don't have it then there is no problem, then you
Please write the Java script, then type it.
what does it mean to write a script so you
Tell me clearly here whether it is or not
There will be type no number in the future so now like
Hey you told that the type number of a will be
It will work, but it will fail.
Because it's not a number, it's a string.
Okay so here's Annie Annie means your
You can say variables like this or like this
Data sets within which you define this
I have not done what kind of things are inside them
The value will come right so that is called any
Well now we have the next band called
Unknown Unknown means one of unknown and any
The difference is that they now talk about themselves for
I made the example unknown, okay.
Now what is the value of a?
It is unknown, okay, so I have given the value of a
I just said it's 12 and in the future I'll do a
The value is said to be Harsh, if you look at it
What is the type of A Unknown A's value is 12
and the value of a futures
I will go here and we will bring it here
But they can do it, they can define it.
Yes, I will explain how we can go and say this.
can that
If the type of a is string If the type of a is
string then a dot and if you see
So you will find all the things related to A there.
I can see it okay so what
We can't do this with a
Let's see let's go so here on a key
The value is a. The type of a is currently a.
The value is 12 and the value of a is Harsh right
Now when I write here if type of
If a is a string, I'll look for p here.
I am a dot, so friend, I am getting this here also.
If it is there then what is the difference between any and unknown sir
What's the difference now? Let's talk about that.
So let us understand the exact difference.
What is it like right now let's and I've got someone
I did not tell the type, its type is any, okay
If I go to the future and I open the case
I will write that there is no error, no problem.
No, all kinds of type scripts with Annie.
It turns off, understand that you are typing
Script, all your checking, all your intelligence
My brain stops typing
The script says now you know its type.
Any, okay, so there's nothing to check here.
Raha will fail for this number and this
This code will run for string right then
So this is technically incorrect code because
You put a number in one place and a string in another place.
Take it, it will fail for the number and
This code will work for string so this
It's messed up, right? If you look at it, it's messed up.
Okay, now here comes the mess.
Gai Can You See Can You See So this is messed up
Now if you look here, its type A is unknown.
If you do it, he will say, look brother, it is like this.
You cannot use a2 upper case even if your
Why don't you want the last value to be a string?
You will have to specify here if its type
If it is a string, upper case will be used, otherwise not.
If it is there then it will not work or you will have to specify it separately.
You have to do it, that is what we call it
Type narrowing will go ahead and read it, you just
Take such care in the unknown, Annie is absolutely
Type Script of Unknown means type
The script says okay, whatever you use
You can use the value unknown, which means you
First put 12 and then put some more joy
Take it later, you put it there, there is no problem.
It will not happen, meaning you do not already have this
Telling that its type is number only but
Unknown says, look brother, everything is fine with you.
You can enter whatever value you want but further
Whenever you go and work, you will
First you have to check its type and then
Only after that you can do work related to it.
So first you have to check that it
You can call any method on a string only if it is a string.
That's what Unknown is all about
That's all the story that takes us to
Void That Takes Us to Void and Null End
Undefined and never let's go fast
If you are on the void, then quickly consider it a function.
I will go ahead and read the function okay AB
There is a function called cd from let's and it
The function is not returning anything
just what are you doing inside this console
Log a function that returns nothing
The return keyword is not being used
There you
If it is not returning then you should use the function
What return should I tell Void, I will explain.
Listen, this is our function, what should it return?
There is nothing left of the function here
The name of the function is just after its name.
You will have to put a coolan and tell that this
What is returning void? Void means something.
is also not returning good if
If I was returning, then like here
If I was returning 12 then I
I have to go here and tell him that I am returning it.
There is a number ok and if Harsh is returning
If it had happened, I would have had to tell him to return it.
There is a string, well, I understood the meaning
function whenever you
Whenever you create a function, you will have to do this
You need to specify its return type.
am i talking like this yes
Of course I'm returning true.
Okay Sir, I am not able to understand this right now.
I'm not explaining, you're missing a thing.
I'm just introducing you to them.
I am not explaining or teaching you right now.
I'm just introducing you to these types.
These types are written because these
It is my responsibility to provide you with these
If I introduce you right once, I will also give you just
I'm mixing it up as we go over these topics.
Then you will understand very well, trust me.
He will come friend, why won't he come, let's go now.
And this is the tap tap, it's very simple, when you
You search for something and it comes to you
If it is not found then the result in return
You get that tap, I'll give you a demo of the tap.
Think of it like this, friend, I said database
I am looking for a user named Harsh Sharma.
and who lives in Bhopal and who lets
I am now the owner of Kapoor's Cafe.
So brother, I am not the owner of Kapoor's Cafe and
As far as I know, Kapoor's Cafe has no
There is no owner whose name is Harsh Sharma
And I also live in Bhopal, so it is not like that.
Now if this is not the case then what will we get tap
If there is no such user then we
If you get the tap right then just write how it is like this
Understand that it is NULL, yes, that's it.
So what is its type, read it, it is N
Time because there is no tap type here.
Here basically if you set null value
If you do this then he will set his type as any
Well, if we set it up here like this,
What is the type of A now? The type of A is null.
So it's more like that so one thing to consider
If you want to set the null type only
If yes, then don't take the type of Just Like That A
If you go into the future and put 12 in it
So that will give you an error brother.
You have specified the type of a as null and you want to see here
If you are keeping 12 then that is why we are in the future
I'll go and read Jas Something Called Union To
If it is written something like this then we here
Clearly speaking, the value of a is either
String is union is either null basically
is either a string or null, right?
Whenever you keep the value of a going forward, you will keep it harsh.
So that is also accepted because the string
It can also be and you will keep the value of a as null
So that is also accepted because there should be a tap also.
But if you keep the value of a as 12
If you give it to me sir, it is not accepted
There will be an error, okay so this
The story is good, what is undefined brother
You can use the same JavaScript theory in any
If you do not give a value to a variable, it
It will be undefined, okay, so here I have
It is clearly stated that its type is undefined.
And if you look at what is the type of a
Undefined is simple at nothing special okay
Okay and that takes us to the never never
What is Never's, just understand this much, Milliam Un
Use it in places that have never been
There will be no returns, there will be no returns
I will give a demo so the function is a
b is the cd function and I've put here pe while
made it true while true means if you
If you have never read it, the meaning of while true
Friends, there is an infinite loop, so if this
The function will continue to run so the next code never
If it works, see if I played A B CD.
Okay, if this function is run while true
It means that the same function is always run.
If it remains, the code following it will never run.
watching watching watching watching is interesting
Yes, if you look at it now, it is colorful.
No, and as soon as I type it,
Brother, this will never let you move forward, so you
If you look at it, it has become dull, it has become dull.
Why because what is the type of A B CD
Never never means it will never return.
I will not return anything, never return anything.
Now run A B CD and run it once
Our control has gone here and never returned.
He will not return, you have written never, then never
If he doesn't return, the next line won't work.
Sometimes that's why it will become dull, right, and if
If you remove the never, you will see that colorful
It will happen and if you apply it, it will become dull again.
We will rarely read it
Because there is no need for never
just infinite loops or some code that
will not allow further code to run there or
will throw error in such codes needed
You never have to do the rest normally.
There will be no need, so we have used the basic types.
I have read everything so that was a great section
Now you know friend you're a little girl to me
If you do this work, I will be very grateful to you brother.
Sir, I am doing the screen
Please study these things thoroughly.
Please practice sir, please do it and now
We're going to the next section, you join me.
you are going okay [music]
[music]
Come on brother, you are done here right away.
Welcome right away and we're reading
Type I Differences Too
This is a very light and halwa topic and we
Have to read type notations already read
Yes, that is also an all topic, so now I will tell you
I am taking you along, come on my screen
Together here on the screen sir, so let's go then
Type ifren and we have to read it sir
Understanding Type Annotations Quickly
Let's start with type infer means infer
Hans means brother, when you change the variable
Explain what type is like if I did calculus
I called and said the number, this is what happened that I
I told you brother what is its type and number.
It's good and if you don't tell me and go straight
Give the value and after seeing the value the variable
Find out for yourself what type number it is.
It is said that ifren ifer means type script
Ask yourself and think carefully that
So what if I put 12 here
We put double codes, we did not tell anywhere
is string but the type of a is now string
If it is automatic then this automatic setup
This is what is happening, it's called type efren
Halwa topic is fine, now sir tell me notations
what is notation hey
Sir, you have been reading the notation for so long.
You wrote this by making a mistake.
You have written the value, we will type it
The notation says very pudding so I
I told you this is a section, isn't it something special, sir?
There are now many types of notation here.
Things can happen here at Union
etc. You can give that further reading operators
Now I have told you here, brother.
what is the notation number or boolean so we
Or you can even say that brother, this
In the future, the number may be bullish.
It could also be a string, so now
In this A of yours, 12 is also allowed further and
True is also allowed and Harsh is also allowed
Because sir, you have written it clearly.
Number or sacrifice or string then nothing
Special that side right then type eren and
You must have understood both the type notation
This takes us to the next section, Plates [music]
[music]
Okay, so understand one more thing in the next section.
Before moving on to type notation, let's take a look at
It is like this, if you said variable
Sir, okay you said variable, so here you
But can you tell me also, this is what happened sir,
Done you have type notation on the variable
Now if you had created a function
What is it now, I am staying away from it a little bit.
I am not telling you because I have not told you yet.
I have not taught you functions etc. yet, oh
If you don't teach, if you don't teach objects, then this
It won't sit well for a while, but still, watch it.
So tomorrow you tell me four things about him.
It is good that I tell you here brother.
in the parameters of your function as well
This is how you do type notations with
You can also set the return type of the function in
If you do it, then type it this way.
The script works for complicated purposes.
It must have been so I didn't want to tell you right now.
But it is Halwa brother, trust me, it is absolutely Halwa.
I will stop for a while, read quickly and work.
It will be done brother, let's move on to the next one. [music]
[music]
So brother, now we have come to the place where it is going on.
A new section is created, so I change my appearance.
Let me show you sir, the last session was quite
This one was small and simple, this one is not like that.
This will take some time sir, this will take
No, this time will drink, okay, its name is
Interface and Type Alias topic tells
I want to quickly read the defining interface.
Using your interface to define
Object Shapes Extending Interface Type
Alias and Intersection Types
I also use union types before intersection
I want to tell you all this, okay?
You have to read the reason, now when you read this then its
What will happen after this section, you will also feel
You will do that for your overall type script
You can also say that she has great understanding.
after this section and this is my guarantee
If you have it then you are coming with me now.
Where is the screen and both of us readers
This is written in front, sir, let's go.
Interface and Type Elias Story First This
Understand that these are two gods, the name of one of them is
interfaces and one is called types okay this
We have two daughters who have to study these two.
What is meant by interface work?
Tell me the shape of the object right now brother.
Will clear more types in two minutes
The task is to create your own user-defined types
Banana and you both did not understand it at first.
Let's talk about a case, we said a function
He said, okay, this is a function, use it first.
see case see use case you you use case Look, it is a good function, he said it is okay, he said
Look, it is a good function, he said it is okay, he said Friend sir, two parameters will appear here.
Friend sir, two parameters will appear here. He said, what is A and B, okay, what is the type of A?
He said, what is A and B, okay, what is the type of A? Yes, he said the number is okay sir, it is type B.
Yes, he said the number is okay sir, it is type B. what did you say it's a string ok sir it's done
what did you say it's a string ok sir it's done Now he said, this is type number of A, yes it is of B.
Now he said, this is type number of A, yes it is of B. what is the type is string okay okay
what is the type is string okay okay Okay, now let me tell you further, friend, this is what it is.
Okay, now let me tell you further, friend, this is what it is. Number B is the string, so go inside and whenever
Number B is the string, so go inside and whenever If you write A dot then you will get only those methods
If you write A dot then you will get only those methods will appear which is related to the number and when you
will appear which is related to the number and when you If you write B dot, then only those methods
If you write B dot, then only those methods which is related to the string and this
which is related to the string and this The way TypeScript works now
The way TypeScript works now I have created another function, ask how to say it
I have created another function, ask how to say it Not created, let's assume created, get data
Not created, let's assume created, get data Off user okay this is our function get
Off user okay this is our function get Data of User will now accept this sir
Data of User will now accept this sir One of your objects is fine, so I said
One of your objects is fine, so I said Diya OJ is accepting this object
Diya OJ is accepting this object Okay, let's go brother, it's very simple, friend.
Okay, let's go brother, it's very simple, friend. Sir, what is inside this object?
Sir, what is inside this object? I must have applied OJ dot and told myself something.
I must have applied OJ dot and told myself something. I can't see why, brother.
I can't see why, brother. Javascript is not internal
Javascript is not internal Only what will be inside the object
Only what will be inside the object Interface comes in a roll meaning your
Interface comes in a roll meaning your The object will have a name, email, and password.
The object will have a name, email, and password. You tell me what will happen in the interface.
You tell me what will happen in the interface. You can, and I can write that here.
You can, and I can write that here. I am explaining it to you, so come with me and accept it.
I am explaining it to you, so come with me and accept it. What are there in your object?
What are there in your object? You must have said, come brother, my object
You must have said, come brother, my object If I have no name email password then I
If I have no name email password then I Here the interface user says what is this name?
Here the interface user says what is this name? Hey, you can name it anything, friend, uncle?
Hey, you can name it anything, friend, uncle? It is making a difference, I have kept the user Sir.
It is making a difference, I have kept the user Sir. What is this interface? Just bear with me for two minutes.
What is this interface? Just bear with me for two minutes. Okay, then you will understand, I said, okay sir.
Okay, then you will understand, I said, okay sir. ok name is done brother string and email
ok name is done brother string and email It's done brother, a string again string
It's done brother, a string again string Okay string and email from me and let's
Okay string and email from me and let's Email is done, password is done, this is also ok
Email is done, password is done, this is also ok It is a string, tell me, okay sir, become an interface.
It is a string, tell me, okay sir, become an interface. Yes, you said this object
Yes, you said this object will come, it is equal to this interface in it
will come, it is equal to this interface in it The object will also have a name and email.
The object will also have a name and email. What can you do if you have a password?
What can you do if you have a password? Till now you were calling a as number, now you are calling this
Till now you were calling a as number, now you are calling this You can call O BJ a user, meaning it is OB J
You can call O BJ a user, meaning it is OB J What type is it? UserType is not a type.
What type is it? UserType is not a type. This is basically an interface, meaning it is a shape.
This is basically an interface, meaning it is a shape. If yes, then it is of user type No type
If yes, then it is of user type No type Interface means face, O BJ's face, user
Interface means face, O BJ's face, user like
like Okay, so the name and email address of the user.
Okay, so the name and email address of the user. Password is yes and their type is string
Password is yes and their type is string string string hai yes so ob j ki
string string hai yes so ob j ki Face will also be name, email and password.
Face will also be name, email and password. It is necessary to happen, it is necessary, meaning when we are in the future
It is necessary to happen, it is necessary, meaning when we are in the future I will run this function in
I will run this function in Get data of user so the object we put in it
Get data of user so the object we put in it You will give me this name, email, password.
You will give me this name, email, password. I will have to give it, yes, and if I don't give it then what
I will have to give it, yes, and if I don't give it then what I am getting an error, look at this, I am getting an error missing
I am getting an error, look at this, I am getting an error missing What is missing? Name, Email, and Password
What is missing? Name, Email, and Password It is missing from this so I gave the name
It is missing from this so I gave the name I'll give you a name
I'll give you a name Harsh, there is still an error, what is missing sir?
Harsh, there is still an error, what is missing sir? Email and password are missing, good means total
Email and password are missing, good means total Got it, this is the object I'm passing
Got it, this is the object I'm passing This is the shape of the one that will go into OBJ.
This is the shape of the one that will go into OBJ. should be exactly like
should be exactly like Sir, this seems quite confusing and tough.
Sir, this seems quite confusing and tough. It's not tough, brother, I'm telling you.
It's not tough, brother, I'm telling you. Yes, it is not tough, listen type script.
Yes, it is not tough, listen type script. I want to know what this parameter is.
I want to know what this parameter is. What type is the value of the parameter?
What type is the value of the parameter? I am interested in learning about typescript.
I am interested in learning about typescript. And want to know type script in Hindi
And want to know type script in Hindi I understand that you said well, you said well.
I understand that you said well, you said well. Sir, we have to give you an object here.
Sir, we have to give you an object here. We will give an object here.
We will give an object here. I will give you the object, okay sir, yes he said.
I will give you the object, okay sir, yes he said. What values will the object have now?
What values will the object have now? I don't know where that type script is now.
I don't know where that type script is now. I know, look, did you tell me somewhere O.J.
I know, look, did you tell me somewhere O.J. Here you can write an object like this
Here you can write an object like this Okay, if you write the object, you
Okay, if you write the object, you Tell me if you can write the object also
Tell me if you can write the object also How is it clear that the object
How is it clear that the object What's inside Email Password Name
What's inside Email Password Name What is it, is it becoming clear or not?
What is it, is it becoming clear or not? So then you create what interface so you
So then you create what interface so you What is the interface of that object?
What is the interface of that object? I'll give you a demo, you said.
I'll give you a demo, you said. Sir, I am creating objects one by one.
Sir, I am creating objects one by one. this is my object sir in this object
this is my object sir in this object My name is Harsh and my email is Email Sir
My name is Harsh and my email is Email Sir Sir, this is my email and this is the wrong email.
Sir, this is my email and this is the wrong email. is by the way okay password a password
is by the way okay password a password My ABC CD
My ABC CD So sir, what will its interface look like?
So sir, what will its interface look like? Its interface will look like this interface and I
Its interface will look like this interface and I I will give you a username, keep whatever name you want.
I will give you a username, keep whatever name you want. Two names are a string email is a string
Two names are a string email is a string and come on password is also a string then
and come on password is also a string then This is the interface of the object, meaning its appearance.
This is the interface of the object, meaning its appearance. looks like this
looks like this Yes, so how will you use it?
Yes, so how will you use it? It is simple, create a function, you create a function
It is simple, create a function, you create a function B CD You said I object to this
B CD You said I object to this I will give it, yes I will give it, okay then the object
I will give it, yes I will give it, okay then the object If I had to tell the appearance, then that of the user interface
If I had to tell the appearance, then that of the user interface make it equal
make it equal Okay, so now the shape of the object is given by the user.
Okay, so now the shape of the object is given by the user. It is like an interface, meaning the name of the object
It is like an interface, meaning the name of the object There will be an email and a password, yes you are inside
There will be an email and a password, yes you are inside Try putting a dot, now you put another dot
Try putting a dot, now you put another dot Look, you have three things presented there.
Look, you have three things presented there. how how how is it present because
how how how is it present because TypeScript knows when the user
TypeScript knows when the user TypeScript will run a BSD function
TypeScript will run a BSD function She knows this, so that object
She knows this, so that object Dega knows how to type script
Dega knows how to type script You mentioned OB here, right? If yes, then give it.
You mentioned OB here, right? If yes, then give it. We won't have to do it in JavaScript.
We won't have to do it in JavaScript. I used to give it to you, if you don't give it in type script
I used to give it to you, if you don't give it in type script An error will come, right? I mean, if I type A B
An error will come, right? I mean, if I type A B CD for a second you're saying this like
CD for a second you're saying this like Understanding how to use JavaScript
Understanding how to use JavaScript Created this Java Script function and created AB
Created this Java Script function and created AB CD We have started A B A B C Abe Chal
CD We have started A B A B C Abe Chal No, I played the A B CD, this one played.
No, I played the A B CD, this one played. Diya said yes I played A B CD
Diya said yes I played A B CD I was asking for an object, I was asking for it
I was asking for an object, I was asking for it what did you not give did not give did not give
what did you not give did not give did not give If you don't give it then an error is coming, please check it.
If you don't give it then an error is coming, please check it. Argument for object was not
Argument for object was not If a provided error comes then type
If a provided error comes then type The script knows that and gives itself to that
The script knows that and gives itself to that Value argument must be provided
Value argument must be provided Yes, she knows typing, she knows it very well.
Yes, she knows typing, she knows it very well. No friend, you know, believe me.
No friend, you know, believe me. knows
what's the matter if this is what I'm talking about TypeScript knows that here
TypeScript knows that here You can pass the object
You can pass the object will have to
will have to Look no man yes
Look no man yes brother yes look you passed the object
brother yes look you passed the object Diya said yes I did it but still there is an error.
Diya said yes I did it but still there is an error. He is coming, that is why he is coming
He is coming, that is why he is coming Because you said the object type is User
Because you said the object type is User will be like the shape of the object, not the type
will be like the shape of the object, not the type Looks like the user
Looks like the user What will the name and email look like as a user?
What will the name and email look like as a user? If the password is yes then the object also has a name
If the password is yes then the object also has a name Email password should be good brother
Email password should be good brother ok this is coming yes look
ok this is coming yes look What is missing? Name Email
What is missing? Name Email Password: So, give all three names here.
Password: So, give all three names here. I gave it to you sir
I gave it to you sir Harsh, okay email sir, I have given it to you and
Harsh, okay email sir, I have given it to you and Password
Password Sir, I have removed the error, it will be removed completely brother.
Sir, I have removed the error, it will be removed completely brother. Sir you passed object to AB CD
Sir you passed object to AB CD He said, has the object arrived? It's okay.
He said, has the object arrived? It's okay. The shape of the object is as described by the user.
The shape of the object is as described by the user. The shape of the object is also shown to the user.
The shape of the object is also shown to the user. It is absolutely good as it is, very nice
It is absolutely good as it is, very nice Sir, this is a very good thing, brother.
Sir, this is a very good thing, brother. Sir, it was great fun, one good thing.
Sir, it was great fun, one good thing. And now two questions will come to your mind: first
And now two questions will come to your mind: first If I can add one thing here, yes.
If I can add one thing here, yes. Then the error named edge will come again, right?
Then the error named edge will come again, right? field you are giving extra object
field you are giving extra object Literals may only specify non-properties
Literals may only specify non-properties And age does not exist in type user is the
And age does not exist in type user is the Type User Type Not Ho Interface Again Wo
Type User Type Not Ho Interface Again Wo He is saying type, I don't want to say type.
He is saying type, I don't want to say type. interface speaking this user this user's appearance
interface speaking this user this user's appearance I don't have the edge you said of the object
I don't have the edge you said of the object The face is like a user and you are here with one such
The face is like a user and you are here with one such You are giving something which is not in the form of the user.
You are giving something which is not in the form of the user. This is common sense brother O BJ and this user
This is common sense brother O BJ and this user It is coupled, you have said here that OB
It is coupled, you have said here that OB Looks like a user but here's Obie J
Looks like a user but here's Obie J Username/Email not showing as user
Username/Email not showing as user Password must be Name Email Password is
Password must be Name Email Password is Where the edge comes from is not the same as the user's r
Where the edge comes from is not the same as the user's r You're getting my point now, okay, now your mind is on fire
You're getting my point now, okay, now your mind is on fire I will have a next question sir, it may be that
I will have a next question sir, it may be that me like here here here from let's
me like here here here from let's There's a thing called gender that I need now
There's a thing called gender that I need now Many people do not want to reveal their gender, so now their
Many people do not want to reveal their gender, so now their You don't tell them what to do for them
You don't tell them what to do for them If he wants, he won't tell me his gender, not now.
If he wants, he won't tell me his gender, not now. If you tell me sir, some people will tell me how to run it.
If you tell me sir, some people will tell me how to run it. Some people will not tell what is in that case
Some people will not tell what is in that case If you do it then put a question mark meaning
If you do it then put a question mark meaning Hey Dada, put a question mark on saying this.
Hey Dada, put a question mark on saying this. If yes first, then yes, then it will be optional.
If yes first, then yes, then it will be optional. If you give an optional meaning then it is fine, otherwise it will be fine.
If you give an optional meaning then it is fine, otherwise it will be fine. It's also fine if you provide a gender.
It's also fine if you provide a gender. If I give it then it's fine, if not then it's fine I know
If I give it then it's fine, if not then it's fine I know You must be getting a headache
You must be getting a headache You are getting confused brother, do me a favor.
You are getting confused brother, do me a favor. Please listen to this video again
Please listen to this video again Look and see it three, four, five times to be sure.
Look and see it three, four, five times to be sure. As if you are not failing in this
As if you are not failing in this You are slowing down, you are getting late.
You are slowing down, you are getting late. Yes, Dada, time passes here when you
Yes, Dada, time passes here when you You are studying and you feel like
You are studying and you feel like I should check again what time it is there.
I should check again what time it is there. There is some time nearby, there is no time nearby
There is some time nearby, there is no time nearby You should know this, you are not late
You should know this, you are not late While studying, if you study three
While studying, if you study three You think this video is being made three times
You think this video is being made three times If you have to check the bar then you are getting late, right?
If you have to check the bar then you are getting late, right? While driving you were getting late so don't worry
While driving you were getting late so don't worry about it let's go so we have the shape here
about it let's go so we have the shape here Made an inter, well where does the whole story start?
Made an inter, well where does the whole story start? It happens then understand the whole story from here
It happens then understand the whole story from here Understand the problem is starting
Understand the problem is starting Let us say AB CD is a function which
Let us say AB CD is a function which Object accepts now object key
Object accepts now object key Interface is created when the face has to be expressed.
Interface is created when the face has to be expressed. A B
A B The CD is ready, he said, yes, now see what it looks like.
The CD is ready, he said, yes, now see what it looks like. Hogi Bole Name Hogi Achha Try String
Hogi Bole Name Hogi Achha Try String Okay, tell me it will be email, yes it will be string.
Okay, tell me it will be email, yes it will be string. No emails, email would be good, what else would it be?
No emails, email would be good, what else would it be? By the way, this is common semicalculus instead of semicalculus.
By the way, this is common semicalculus instead of semicalculus. You can also put it if you want and say
You can also put it if you want and say Password will be Yes Password will be
Password will be Yes Password will be string will be okay so here we have
string will be okay so here we have He said that according to him our shape is like A B CD.
He said that according to him our shape is like A B CD. This guy must have more OBJ like you dot
This guy must have more OBJ like you dot If you put it then you know that the name email inside
If you put it then you know that the name email inside Password te to name email password is shakl
Password te to name email password is shakl If it should be in then you can use it now.
If it should be in then you can use it now. ho to it's more like that to type
ho to it's more like that to type The script here is 100% sure that OBG
The script here is 100% sure that OBG What is the shape of AB CD and AB CD
What is the shape of AB CD and AB CD What is in the form Name Email Password
What is in the form Name Email Password Type Script 200 is sure that OBG
Type Script 200 is sure that OBG Name Email Password will also be in the form of
Name Email Password will also be in the form of That's why it shows you these options there.
That's why it shows you these options there. This is Can You See Now I'm here for another one
This is Can You See Now I'm here for another one Adding field Gender which is string
Adding field Gender which is string and I say this is optional, okay
and I say this is optional, okay So if I put a dot here, you
So if I put a dot here, you Gender will also be visible here but beyond that
Gender will also be visible here but beyond that one what do you see optional so make
one what do you see optional so make Make sure you check that it's an optional
Make sure you check that it's an optional field is right so that is how interface
field is right so that is how interface Works at the first place that is what
Works at the first place that is what The Interface Is All About the First Place Right So
The Interface Is All About the First Place Right So Defining Interfaces: How Do We Define We?
Defining Interfaces: How Do We Define We? Actually make interface with the keyword
Actually make interface with the keyword Write interface interface then whatever you want next
Write interface interface then whatever you want next Write the interface you want to create for example.
Write the interface you want to create for example. I have become the user interface maker, sir.
I have become the user interface maker, sir. This is the interface sir, it's okay, use it.
This is the interface sir, it's okay, use it. Interface to define shapes we already do
Interface to define shapes we already do We have already created an object for it.
We have already created an object for it. We had seen that the interface was made like the shape
We had seen that the interface was made like the shape Now Extending Interface Now Extending
Now Extending Interface Now Extending So you will understand only when we see two interfaces
So you will understand only when we see two interfaces And we should learn to extend them now that we
And we should learn to extend them now that we We're going to see that in the next video
We're going to see that in the next video Obviously and type Elias this after that
Obviously and type Elias this after that Before the intersection type in the video
Before the intersection type in the video I will teach union types and intersection
I will teach union types and intersection Type, then I will teach you a little more
Type, then I will teach you a little more There are videos, let's start brother.
There are videos, let's start brother. [music]
[music] So tell me friend, where did I bring you?
So tell me friend, where did I bring you? I've brought you Extend
I've brought you Extend What to get extended, everything should be extended
What to get extended, everything should be extended Come and see the interface, we
Come and see the interface, we I created an interface, this is the shape, this is the shape
I created an interface, this is the shape, this is the shape It is of the user, so I said this is the face of the user
It is of the user, so I said this is the face of the user what is in the name string email
what is in the name string email The password is OK and another interface
The password is OK and another interface He made it and said, brother, this is the shape of moss.
He made it and said, brother, this is the shape of moss. He said, friend, this is not the face of the user.
He said, friend, this is not the face of the user. Let's look like an admin, okay?
Let's look like an admin, okay? Now comes the interesting part, I said, sir.
Now comes the interesting part, I said, sir. Interface Admin Extends
Interface Admin Extends User, now look carefully here I have added
User, now look carefully here I have added Done, added another property admin
Done, added another property admin And I valued it, this will happen.
And I valued it, this will happen. Okay, so in the future, we have clearly
Okay, so in the future, we have clearly It is said that admin extended user means
It is said that admin extended user means This is that the admin is extending the user
This is that the admin is extending the user Ko which means whatever is there in the user
Ko which means whatever is there in the user The admin will have it but the admin himself will have it.
The admin will have it but the admin himself will have it. There will be an extra property in the admin
There will be an extra property in the admin I am explaining, don't mumble, just watch.
I am explaining, don't mumble, just watch. Look in front, function A B Sdi say yes say
Look in front, function A B Sdi say yes say Bhaiya is accepting the object, okay?
Bhaiya is accepting the object, okay? Now listen, if I set the value of the object
Now listen, if I set the value of the object If you do it equal to the user then inside OJ you will get
If you do it equal to the user then inside OJ you will get What access do you have? Email Name Password If
What access do you have? Email Name Password If I set the value of the object to admin
I set the value of the object to admin Tax
Tax Didi means equal to this brother so because
Didi means equal to this brother so because It is extending to the user, so whichever user
It is extending to the user, so whichever user He has that, he has this, plus that
He has that, he has this, plus that I have an extra property so now I
I have an extra property so now I When I put a dot, you will see that one
When I put a dot, you will see that one Extra property is also coming admin you
Extra property is also coming admin you You must be able to understand, this is the whole story
You must be able to understand, this is the whole story Sir, you create an interface and you create a shape.
Sir, you create an interface and you create a shape. A new shape has been created and the new shape has been called the old shape.
A new shape has been created and the new shape has been called the old shape. Keep what you had, and keep the new one along with it.
Keep what you had, and keep the new one along with it. Keep one thing like this and name the new form as admin
Keep one thing like this and name the new form as admin Don't you understand, this is your old face, user?
Don't you understand, this is your old face, user? Where is the name of the new face? Admin New Face
Where is the name of the new face? Admin New Face Extended means it goes beyond the user.
Extended means it goes beyond the user. So whatever the user has, it is already there.
So whatever the user has, it is already there. Did you remove him and make him admin?
Did you remove him and make him admin? Balling said just this much, now sir do one thing.
Balling said just this much, now sir do one thing. Yes, let us extend it and give you something.
Yes, let us extend it and give you something. Now let's see what happens if there is no value.
Now let's see what happens if there is no value. Well, if you can apply common sense, what then?
Well, if you can apply common sense, what then? It will happen, right, admin, if now I OJ dot
It will happen, right, admin, if now I OJ dot If I put it on, OJ will have everything he wants
If I put it on, OJ will have everything he wants User has because when admin extends
User has because when admin extends what the user had, so what the user had
what the user had, so what the user had It has come to the admin but some ads from myself
It has come to the admin but some ads from myself If not done then whatever the user had
If not done then whatever the user had If the admin has it then some special purpose here
If the admin has it then some special purpose here I am not able to understand why you are
I am not able to understand why you are Extending It But You Got the Point Guys
Extending It But You Got the Point Guys Haven't you got the point about interface sir?
Haven't you got the point about interface sir? If we extend, then two interfaces
If we extend, then two interfaces Make it and extend it if you have one
Make it and extend it if you have one Interface Extra is any previous interface
Interface Extra is any previous interface You can also perform extended
You can also perform extended Well that takes us to the next one.
Well that takes us to the next one. Basically that is type analysis but I
Basically that is type analysis but I Before that, I want to show you one thing.
Before that, I want to show you one thing. Interface A B CD OK G & Lets Se
Interface A B CD OK G & Lets Se Let's say name name is and its value
Let's say name name is and its value String is and there is another one interface
String is and there is another one interface This is a very interesting example because after
This is a very interesting example because after will be useful in a b cd and then e
will be useful in a b cd and then e email end string okay so we have two
email end string okay so we have two Created interfaces AB CD and AB CD
Created interfaces AB CD and AB CD If I ever say A B CD Future
If I ever say A B CD Future I'll put another dot by the way just second
I'll put another dot by the way just second Function A B CD & O BJ Its shape
Function A B CD & O BJ Its shape I said A B is equal to CD, okay?
I said A B is equal to CD, okay? In the future whenever I ob h dot
In the future whenever I ob h dot You will see that and name both me
You will see that and name both me This means that there are two interfaces
This means that there are two interfaces of the same name are actually merged
of the same name are actually merged and an interface is formed in which
and an interface is formed in which These and these will be both, let me explain to you.
These and these will be both, let me explain to you. Created an AB CD and added the name string
Created an AB CD and added the name string You made another A/B CD and put the email in it.
You made another A/B CD and put the email in it. If you keep the string then it will not happen that this one
If you keep the string then it will not happen that this one It is overwriting this, basically it is a merge
It is overwriting this, basically it is a merge will go and both will come in the A B CD interface
will go and both will come in the A B CD interface If you go, you have to take care of it.
If you go, you have to take care of it. Because when we read the type further, it will be like this
Because when we read the type further, it will be like this If it's not there, will you come with me now?
If it's not there, will you come with me now? immediately read the type and then
immediately read the type and then You will rest a little, not me.
You will rest a little, not me. I will not do it, I have to make a course.
I will not do it, I have to make a course. Complete but you will relax and feel good
Complete but you will relax and feel good You will study and cover these topics
You will study and cover these topics Come on, let's
Come on, let's [music]
[music] Bhaiya, now let's read Type Illis Bada
Bhaiya, now let's read Type Illis Bada Simple simple sorted you have a variable
Simple simple sorted you have a variable He said okay, his type has been created.
He said okay, his type has been created. You made the number, he said it is done, he said sir a
You made the number, he said it is done, he said sir a what is the type of number you want now
what is the type of number you want now No, no, brother, we have the number here.
No, no, brother, we have the number here. We don't speak, we speak numbers here.
We don't speak, we speak numbers here. number bo ok so you type your own
number bo ok so you type your own How can you make it, type it, speak it, write it
How can you make it, type it, speak it, write it Write down the number, good name, yes whatever you want
Write down the number, good name, yes whatever you want If I come, I can make four types also.
If I come, I can make four types also. Yes, create it, so we created the number type.
Yes, create it, so we created the number type. Okay then and I told brother this
Okay then and I told brother this Type what is there, that is the number, that is the number, done.
Type what is there, that is the number, that is the number, done. Yes, that's it, so I let a and the value of a
Yes, that's it, so I let a and the value of a what did the number so what type is a
what did the number so what type is a a is of number type then type as per your requirement
a is of number type then type as per your requirement from it you can create something new and you can
from it you can create something new and you can You can create it and then go ahead and infer it.
You can create it and then go ahead and infer it. You can untake it now, you might
You can untake it now, you might than how much can you say is senseless
than how much can you say is senseless You can change the number type to some other type and
You can change the number type to some other type and Then use it, how senseless is this friend
Then use it, how senseless is this friend But when is it senseless unless you give this example
But when is it senseless unless you give this example Don't see, brother, you said the value of A or
Don't see, brother, you said the value of A or So the string will be either null and that
So the string will be either null and that First you say it could be either a number
First you say it could be either a number Well, in this case, if you look at the larger
Well, in this case, if you look at the larger A very awkward pattern is going right
A very awkward pattern is going right You will do one thing, you will pick it up.
You will do one thing, you will pick it up. You will say late, not late, actually type and
You will say late, not late, actually type and You will say that you will not create a type.
You will say that you will not create a type. Late Late value is ok, your type is Late
Late Late value is ok, your type is Late value from and you wrote next to it or
value from and you wrote next to it or Now you have declared a new type which is
Now you have declared a new type which is is a string or a number or null and you
is a string or a number or null and you You will write the value here, what is it?
You will write the value here, what is it? Understood, did you understand it this way?
Understood, did you understand it this way? Right is used, not just this
Right is used, not just this You come to the function, in the future you say
You come to the function, in the future you say Yes sir, this is a function.
Yes sir, this is a function. We have an object here, okay, say it.
We have an object here, okay, say it. Okay now in the object we have to either brother or
Okay now in the object we have to either brother or Requires either string or null
Requires either string or null If you want one then use the same one again.
If you want one then use the same one again. Method: Pick it up, come here brother type
Method: Pick it up, come here brother type Whatever type you want to set for
Whatever type you want to set for Example value or argument from al, whichever
Example value or argument from al, whichever If you want to keep the type then type it here.
If you want to keep the type then type it here. Mention him and you can post his picture here.
Mention him and you can post his picture here. Please clarify here that brother, what is OB?
Please clarify here that brother, what is OB? Type what is A RG to go to the future
Type what is A RG to go to the future Whenever you give value in AB CD, if
Whenever you give value in AB CD, if If someone writes true then an error may occur that
If someone writes true then an error may occur that Bhaiya, this type is not allowed, what is allowed?
Bhaiya, this type is not allowed, what is allowed? String and null are technically RG's whatever
String and null are technically RG's whatever There are types that are allowed, so here you can Harsh
There are types that are allowed, so here you can Harsh You can write it's allowed because Harsh is a
You can write it's allowed because Harsh is a string is a string passed into obj
string is a string passed into obj and ARG allows strings to be written
and ARG allows strings to be written So in this way you can make the modules small
So in this way you can make the modules small You can break it into modules but not modules.
You can break it into modules but not modules. We'll break it down into bits and pieces
We'll break it down into bits and pieces can you say this right so this was the first
can you say this right so this was the first The important thing which was the basics of type
The important thing which was the basics of type Meaning type keyword is basically what it reads
Meaning type keyword is basically what it reads and that takes us to union and
and that takes us to union and Intersection Which Is The Next Video
Intersection Which Is The Next Video Come quickly
Come quickly [music]
[music] Go brother, he will bring us to the next place.
Go brother, he will bring us to the next place. Topic Pay Union and Intersection Types
Topic Pay Union and Intersection Types Halwa topic is union intersection a little
Halwa topic is union intersection a little It is difficult but you will be able to learn it in the manner of intersection.
It is difficult but you will be able to learn it in the manner of intersection. When you go ahead and create some things from here
When you go ahead and create some things from here etc. you will be able to understand
etc. you will be able to understand When will we come next? Now we will do a lot in this course.
When will we come next? Now we will do a lot in this course. Brother, I will solve terrible questions and other things.
Brother, I will solve terrible questions and other things. We will create a lot of things in the future.
We will create a lot of things in the future. to create and I have thought that
to create and I have thought that Friend, when we do all that then
Friend, when we do all that then This will sit at the intersection of Clarity, which
This will sit at the intersection of Clarity, which We say as much as we can understand for now.
We say as much as we can understand for now. Okay, take it, let's look at the union first.
Okay, take it, let's look at the union first. We have already seen it by the way here
We have already seen it by the way here But I had clearly told you that brother it will be string.
But I had clearly told you that brother it will be string. Or maybe this stick that you see is a tap
Or maybe this stick that you see is a tap Pipe, this pipe is called union, okay
Pipe, this pipe is called union, okay Yes, we call this a union, so
Yes, we call this a union, so This is union, now what is intersection?
This is union, now what is intersection? This is the scene with the intersection, sir, you are
This is the scene with the intersection, sir, you are You are saying that understanding makes sense here.
You are saying that understanding makes sense here. that Bhaiya will be either string or null
that Bhaiya will be either string or null Intersection, so this is the intersection.
Intersection, so this is the intersection. Meaning you are saying that there is also string and
Meaning you are saying that there is also string and Even the tap doesn't work like this, how does it work?
Even the tap doesn't work like this, how does it work? Let me explain that you have created a type.
Let me explain that you have created a type. Let's type created user and you said
Let's type created user and you said Sir, an object is of type Object
Sir, an object is of type Object As per the type, you will know what will be in it.
As per the type, you will know what will be in it. You are defining the interface as you have done.
You are defining the interface as you have done. There will be a name in it, sir, okay there will be a name, brother.
There will be a name in it, sir, okay there will be a name, brother. Sir and name will be string and you said
Sir and name will be string and you said Diya, there will be email also here sir, which
Diya, there will be email also here sir, which will be a string, okay, you define it
will be a string, okay, you define it Diya said, good, now you have to go to the future.
Diya said, good, now you have to go to the future. You have to save a value from let's say a b
You have to save a value from let's say a b CDE is to save something which the admin
CDE is to save something which the admin And there are a couple of methods in it, so you can
And there are a couple of methods in it, so you can And you can type it, you can say the reason
And you can type it, you can say the reason We have a new type called Admin.
We have a new type called Admin. And the admin who is the previous user is there.
And the admin who is the previous user is there. As well as the admin means the user
As well as the admin means the user And there is already name and email so like user
And there is already name and email so like user The name and email in the user was our admin.
The name and email in the user was our admin. I already have it, along with the admin has a new
I already have it, along with the admin has a new There is a method called Get a Get Details
There is a method called Get a Get Details which the user accepts, which is a
which the user accepts, which is a string will be ok and let's say you can do this
string will be ok and let's say you can do this You speak in a proper way, by the way get details
So, you said it this way for example. And that dozen returns anything okay so this
And that dozen returns anything okay so this You said it this way, so now your admin
You said it this way, so now your admin It will have a getDetails method which will
It will have a getDetails method which will that the user will accept right then this way
that the user will accept right then this way There is something from it, let's see it quickly.
There is something from it, let's see it quickly. I created a function called let's call it function ok
I created a function called let's call it function ok is a b cd ok done and i y p
is a b cd ok done and i y p He said that the type of Bhaiya A is Admin.
He said that the type of Bhaiya A is Admin. Okay, the type of A is admin. Now when you go to A.
Okay, the type of A is admin. Now when you go to A. If you come and you put a dot, you will see
If you come and you put a dot, you will see So he has a name, he has an email.
So he has a name, he has an email. Why because the name is coming from the user and
Why because the name is coming from the user and Email as well as end is attached
Email as well as end is attached in the intersection and you're saying this is also
in the intersection and you're saying this is also So near it dot get details also method
So near it dot get details also method If it is there then from here it seems that sir this
If it is there then from here it seems that sir this The type and interface are quite similar
The type and interface are quite similar Similar to the same but not a little bit
Similar to the same but not a little bit There is a difference, yes you can type and do almost all the work
There is a difference, yes you can type and do almost all the work You can do almost all the work through the interface.
You can do almost all the work through the interface. You can do it, but there are some differences.
You can do it, but there are some differences. The first difference is that you have type A B.
The first difference is that you have type A B. You made a CD and said the number and you
You made a CD and said the number and you again type a b cd and you
again type a b cd and you String bol diya so this will not work
String bol diya so this will not work This will start giving you an error that
This will start giving you an error that It was not happening in the interface
It was not happening in the interface You were merging right the first big
You were merging right the first big Difference The second big difference type of work
Difference The second big difference type of work is to create type string number meaning
is to create type string number meaning Using these data types
Using these data types The interface's job is to create the shape of the object.
The interface's job is to create the shape of the object. What the shape of the object will look like
What the shape of the object will look like So yes, he will mainly help you when you work.
So yes, he will mainly help you when you work. We will understand the difference later when we
We will understand the difference later when we Solve questions, create things
Solve questions, create things I will do it, but for now, just one line in my memory.
I will do it, but for now, just one line in my memory. Keeping a type is a job; merging types
Keeping a type is a job; merging types Create or union or single type
Create or union or single type Defining and using on objects
Defining and using on objects To make its shape, to make its shape, to make its shape
To make its shape, to make its shape, to make its shape Interface come to action so a little bit of it
Interface come to action so a little bit of it Think about this whole session again.
Think about this whole session again. Read it carefully for two to three days.
Read it carefully for two to three days. Read it if you think it's here again.
Read it if you think it's here again. Read it and then move on.
Read it and then move on. Come on, let's
Come on, let's [music]
[music] You know, I just finished eating food.
You know, I just finished eating food. And what have I eaten, sir? I ate
And what have I eaten, sir? I ate There is paneer sabji with rice, you should also go there.
There is paneer sabji with rice, you should also go there. Eat it, it's time to eat it.
Eat it, it's time to eat it. Otherwise, if it is not time for eating
Otherwise, if it is not time for eating And you have to say that no sir, our
And you have to say that no sir, our So, is your stomach full brother, you asked?
So, is your stomach full brother, you asked? My mind and stomach are full, if that is the case.
My mind and stomach are full, if that is the case. Then come with me where are you in this section
Then come with me where are you in this section Where classes, objects, real flavor
Where classes, objects, real flavor Yes sir, here it is object oriented.
Yes sir, here it is object oriented. The flavor of programming is that, sir.
The flavor of programming is that, sir. Brother, where else can such studies be found in this section?
Brother, where else can such studies be found in this section? Where classes are not held then this
Where classes are not held then this Talking in the section Classes
Talking in the section Classes Objects Class Definition Constructors
Objects Class Definition Constructors Access
Access Public Private Protected Read Only
Public Private Protected Read Only Properties Optional Properties Parameter
Properties Optional Properties Parameter Properties Getters Setters Static Members
Properties Getters Setters Static Members Abstract Classes and Method Sayings
Abstract Classes and Method Sayings If you understand Hindi hisab then there is a lot more reading.
If you understand Hindi hisab then there is a lot more reading. It is there and the section is also big, so let's go then
It is there and the section is also big, so let's go then Let's get started let's go chap come on let's
Let's get started let's go chap come on let's [music]
[music] Go to friend here you can clearly discuss the topics
Go to friend here you can clearly discuss the topics Everyone can see it, right? And that's enough.
Everyone can see it, right? And that's enough. This is going to be a long section, first of all
This is going to be a long section, first of all I want to cover it, isn't it?
I want to cover it, isn't it? What are exact classes and objects?
What are exact classes and objects? And how do you create that theory?
And how do you create that theory? The part we'll call right, so let's go then.
The part we'll call right, so let's go then. Let us understand quickly, then anyone you
Let us understand quickly, then anyone you To create classes etc. here
To create classes etc. here You write here class and I wrote
You write here class and I wrote Dia for example here device
Dia for example here device I'm creating Okay, I'm creating the device.
I'm creating Okay, I'm creating the device. I am creating a class device now which
I am creating a class device now which Sir, this is like a mold, whenever we
Sir, this is like a mold, whenever we Will you run these or should we give you a new device?
Will you run these or should we give you a new device? Now the device will have many things
Now the device will have many things If yes, then what will the device have?
If yes, then what will the device have? If there is a name, we will have to take that name now.
If there is a name, we will have to take that name now. I bought an LG device for this.
I bought an LG device for this. Okay, the price of the device will also be there, sir.
Okay, the price of the device will also be there, sir. I fixed the price of the device at 000.
I fixed the price of the device at 000. It is good that the category of the device will be the reason
It is good that the category of the device will be the reason If it is definitely there then I have mentioned the category of the device.
If it is definitely there then I have mentioned the category of the device. Karli Digital Okay, okay, so here it is.
Karli Digital Okay, okay, so here it is. My device is gone, ok, now whenever we move forward
My device is gone, ok, now whenever we move forward will go and use new and class
will go and use new and class will write the name
will write the name So if we call it this way, it gives us
So if we call it this way, it gives us What it will do is give us a new device.
What it will do is give us a new device. which I can save right now I'm here
which I can save right now I'm here I am saving it on D1 in Device One
I am saving it on D1 in Device One I'm okay, go ahead and do it this way.
I'm okay, go ahead and do it this way. device then it will give me a new device
device then it will give me a new device Will give it to me, I have saved it in D2
Will give it to me, I have saved it in D2 Okay, now if we want to do this
Okay, now if we want to do this Let us check the code by running it brother.
Let us check the code by running it brother. Do one thing, first of all TSC minus
Do one thing, first of all TSC minus If we use minus watch then this is our
If we use minus watch then this is our The code will be compiled into JS.
The code will be compiled into JS. Will see a lot of it right there okay g
Will see a lot of it right there okay g So this is our ready here, it's ready now.
So this is our ready here, it's ready now. I want your company in this
I want your company in this I hope we can create an HTML file.
I hope we can create an HTML file. Let us take y so that
Let us take y so that We can check it in the browser right here.
We can check it in the browser right here. You can also check it in Nut JS if you want.
You can also check it in Nut JS if you want. But we're discussing those right now.
But we're discussing those right now. Who ever had a lot of nut juice here
Who ever had a lot of nut juice here etc. have not been run, right, our file
etc. have not been run, right, our file The name is D-Jass good if HTML
The name is D-Jass good if HTML to be loaded
to be loaded So give me just a minute here.
So give me just a minute here. Let me show you on the console what's coming up.
Let me show you on the console what's coming up. console p if I type here
console p if I type here d1 so we will see device one you can see everything
d1 so we will see device one you can see everything Can you clearly see device one?
Can you clearly see device one? There's a little device right there that looks like me
There's a little device right there that looks like me He is hiding like that, let me do one thing
He is hiding like that, let me do one thing I'll bring it here. Now you can see the device. Yes.
I'll bring it here. Now you can see the device. Yes. Yes, and if I look at d2, that's also a
Yes, and if I look at d2, that's also a If it is a device then d1 is a device exactly right
If it is a device then d1 is a device exactly right And the d2 is also a device
And the d2 is also a device Perfect but a little glitch
Perfect but a little glitch Yes sir, the first device and the second device are exactly
Yes sir, the first device and the second device are exactly Same is LG LG price price 12000
Same is LG LG price price 12000 12000 category category digital digital so
12000 category category digital digital so It's exactly the same, right, okay, so now if you
It's exactly the same, right, okay, so now if you If you want to be different, then first you
If you want to be different, then first you You will have to learn how to use constructor functions
You will have to learn how to use constructor functions What happens, we'll cover in the next video.
What happens, we'll cover in the next video. You're just going to see what I just told you
You're just going to see what I just told you I told you how a class is formed, so you are in class one.
I told you how a class is formed, so you are in class one. You say friend, at this time I
You say friend, at this time I No, I am making a class of one bottle, this bottle
No, I am making a class of one bottle, this bottle It is made ok sir, then in the bottle brother radius
It is made ok sir, then in the bottle brother radius The radius of the bottle will also be 120
The radius of the bottle will also be 120 I don't know what it is yet, but
I don't know what it is yet, but I have given the value of 120, okay sir.
I have given the value of 120, okay sir. There will be a price for the bottle too, so I said ₹1
There will be a price for the bottle too, so I said ₹1 This is a bottle of ok ji and such values
This is a bottle of ok ji and such values Today we do not give its values in the right way
Today we do not give its values in the right way to give in the next video but radius
to give in the next video but radius I gave the price, I said the essence of the bottle
I gave the price, I said the essence of the bottle If there is a color too, I gave it white.
If there is a color too, I gave it white. Okay, so now when in the future
Okay, so now when in the future Sir, will you also make a new bottle in this manner?
Sir, will you also make a new bottle in this manner? This will create a new bottle for you.
This will create a new bottle for you. I saved it in b1.
I saved it in b1. And now if you go to the browser anytime and check
And now if you go to the browser anytime and check Whether to do it by the way TSC is compiled
Whether to do it by the way TSC is compiled That's it and we can now load the index hut mal
That's it and we can now load the index hut mal If we load this then
If we load this then What will happen sir, from here we go on our safari
What will happen sir, from here we go on our safari Come to the browser with love and check here
Come to the browser with love and check here We will write here wife and wife
We will write here wife and wife This is our bottle one, you can see it here.
This is our bottle one, you can see it here. The bottle has a radius, price and colour.
The bottle has a radius, price and colour. Okay, so this is how the class is created and
Okay, so this is how the class is created and We run the Q now class how why
We run the Q now class how why What are we making from what region?
What are we making from what region? We are making a class, this will be from the next video.
We are making a class, this will be from the next video. You will understand a little bit in the next video.
You will understand a little bit in the next video. Theory will be covered, constructors etc. will be covered
Theory will be covered, constructors etc. will be covered If you do it, you will have a lot of fun there.
If you do it, you will have a lot of fun there. If yes, then we will read all that first and then further
If yes, then we will read all that first and then further You will get clarity sir, so let's go to that first.
You will get clarity sir, so let's go to that first. Let's read and move on, let's begin.
Let's read and move on, let's begin. Do
Do [music]
[music] So suddenly there was a T-shirt change here.
So suddenly there was a T-shirt change here. And the hair is gone, sir, why has this happened?
And the hair is gone, sir, why has this happened? Because I have had a surgery, sir, my poor man
Because I have had a surgery, sir, my poor man The surgery was done brother, so about that surgery
The surgery was done brother, so about that surgery Because of this, I had to get my entire head shaved.
Because of this, I had to get my entire head shaved. Sir, but I thought I would leave it now.
Sir, but I thought I would leave it now. I have increased my studies and I am not teaching for a few days.
I have increased my studies and I am not teaching for a few days. But then I thought, leave it, friend, it's so cute
But then I thought, leave it, friend, it's so cute This is my face, look at my face, look at it once
This is my face, look at my face, look at it once So because of such a cute face I
So because of such a cute face I I am back on channel sir so sherian coding
I am back on channel sir so sherian coding We're bringing school back on these shoulders of ours
We're bringing school back on these shoulders of ours I will move it no matter what my face looks like, I will get some hair.
I will move it no matter what my face looks like, I will get some hair. It will take time, but until then you study.
It will take time, but until then you study. What do you mean by this, how can you walk?
What do you mean by this, how can you walk? So let's get started right away
So let's get started right away Constructors are reading It's Time We
Constructors are reading It's Time We Should Start with the Constructors is no fun
Should Start with the Constructors is no fun Come and we will return your money right here.
Come and we will return your money right here. ok come on then where should i take you
ok come on then where should i take you I am carrying it on a blank page meaning
I am carrying it on a blank page meaning Kopche in Kopche means in space where
Kopche in Kopche means in space where Space ho thoda sa kaam maam kar r ke matlab
Space ho thoda sa kaam maam kar r ke matlab If you understand the matter then come and tell me here
If you understand the matter then come and tell me here I want my lovely epic epic pain come on
I want my lovely epic epic pain come on Epic Pen come on today we read that to these people
Epic Pen come on today we read that to these people You will give what no one in this world has ever given
You will give what no one in this world has ever given I am joking, many people know it
I am joking, many people know it its called constructors okay let's go
its called constructors okay let's go So I stopped [ __ ] my friends and started studying.
So I stopped [ __ ] my friends and started studying. Listen quickly, stop it, okay, listen.
Listen quickly, stop it, okay, listen. What to do: First, let me give you two examples.
What to do: First, let me give you two examples. I will give you both examples, you will hear this.
I will give you both examples, you will hear this. I wouldn't think its constructor would be
I wouldn't think its constructor would be what does it have to do with and in the last
what does it have to do with and in the last I'll explain it to the constructor, that's my guarantee.
I'll explain it to the constructor, that's my guarantee. And then learn to work with the constructor
And then learn to work with the constructor I will guarantee this too, let's see in front.
I will guarantee this too, let's see in front. Go, this is a factory, sir, okay, right now.
Go, this is a factory, sir, okay, right now. So let's say this is a factory, this is a factory
So let's say this is a factory, this is a factory I have a machine it's a machine okay it
I have a machine it's a machine okay it There is a machine, its work is this machine,
There is a machine, its work is this machine, All these many things, this one does something.
All these many things, this one does something. The machine is fine, what it does is it gives you a lot of
The machine is fine, what it does is it gives you a lot of Cars Toys makes all the cars and gives them
Cars Toys makes all the cars and gives them cars okay toy cars so this is a car
cars okay toy cars so this is a car It's done, okay, now accept that this is a car, this too
It's done, okay, now accept that this is a car, this too I got a car, okay, you're fine, and this too.
I got a car, okay, you're fine, and this too. If you have a car then this is a three wheeler car
If you have a car then this is a three wheeler car Okay, let's assume this is good, by the way.
Okay, let's assume this is good, by the way. This is a factory, a machine inside the factory
This is a factory, a machine inside the factory There are other machines like this in different places.
There are other machines like this in different places. that some machine makes toy cars
that some machine makes toy cars The machine makes a doll, you know dolls come
The machine makes a doll, you know dolls come For the boys' big boys
For the boys' big boys When dolls come, they make them and different
When dolls come, they make them and different types of machines, so we have these
types of machines, so we have these This is a machine, it makes toys, okay, it makes toys.
This is a machine, it makes toys, okay, it makes toys. So this toy is for big boys and girls
So this toy is for big boys and girls She doesn't make toys for me, she makes toys for me.
She doesn't make toys for me, she makes toys for me. It's fine for small children, but now it's good for adults.
It's fine for small children, but now it's good for adults. Kids Toys You Should Know in India I Think
Kids Toys You Should Know in India I Think I won't meet you soon but I will meet you, I am not
I won't meet you soon but I will meet you, I am not Very shy about it but this is for small children
Very shy about it but this is for small children She makes toys, now you must be understanding, right?
She makes toys, now you must be understanding, right? These are among the toys for small children.
These are among the toys for small children. What specifically makes a car?
What specifically makes a car? So this car car car okay now this is the scene
So this car car car okay now this is the scene Hero, listen carefully, this machine
Hero, listen carefully, this machine You can't play with the machine. You can't play with the machine.
You can't play with the machine. You can't play with the machine. You can play around with the machine, come on brother machine
You can play around with the machine, come on brother machine Brother, you are moving it back and forth
Bhai sahib said, the rear seats will go forward. We also have a Mercedes, we also have a B.Ed.
We also have a Mercedes, we also have a B.Ed. He said we have a Rolls Royce, he asked how many.
He said we have a Rolls Royce, he asked how many. He said there are five, asked what does it mean, asked the one behind.
He said there are five, asked what does it mean, asked the one behind. If the seats go ahead then you should do this at this time.
If the seats go ahead then you should do this at this time. You call this what you are doing, muh-chuddi, okay
You call this what you are doing, muh-chuddi, okay But what we are studying is what we call
But what we are studying is what we call basically constructor function so I will tell you
basically constructor function so I will tell you Let me explain in Hindi, first one such
Let me explain in Hindi, first one such the machine that is producing is doing
the machine that is producing is doing is the final product, the final consumer
is the final product, the final consumer Product Consume Bal Product Ok Kanju
Product Consume Bal Product Ok Kanju Mail does not mean that you should consume the bulk of the
Mail does not mean that you should consume the bulk of the It means the person with whom you can fulfill your purpose.
It means the person with whom you can fulfill your purpose. If we can do it right then such a machine which can produce
If we can do it right then such a machine which can produce The final consumer product is such
The final consumer product is such The machine we call a constructor did not come
The machine we call a constructor did not come You will understand now, brother, why will you understand?
You will understand now, brother, why will you understand? You are blabbering, listen, listen, I should have accepted it.
You are blabbering, listen, listen, I should have accepted it. yes this is a copy okay now
At Bahanchaud we make flour and make roti. wala right so this is flour okay and this is a
wala right so this is flour okay and this is a I have a shape, this is a shape, okay, this
I have a shape, this is a shape, okay, this Mobile ka shape hai I can show it to you ok
Mobile ka shape hai I can show it to you ok This is the shape of the mobile, so this is the shape of the mobile
This is the shape of the mobile, so this is the shape of the mobile There's a shape, okay, now listen, listen to this, Mike.
There's a shape, okay, now listen, listen to this, Mike. Let's move it aside a little, yes listen, this is flour.
Let's move it aside a little, yes listen, this is flour. This is the shape, this is the shape I placed on top of the dough and
This is the shape, this is the shape I placed on top of the dough and If you hit me like this, what will happen?
If you hit me like this, what will happen? This is how many sections of dough will be cut.
This is how many sections of dough will be cut. Right of this shape section of this shape
Right of this shape section of this shape cutting
cutting If you go, its sections are getting cut.
If you go, its sections are getting cut. Listen right, in Parle G's factory also
Listen right, in Parle G's factory also This is what happens, the dough is moving like this
This is what happens, the dough is moving like this The dough is being run on the dough machine
The dough is being run on the dough machine Right from the top, the molds fall
Right from the top, the molds fall big big big and then after that
big big big and then after that Pieces of biscuits are cut right listen listen
Pieces of biscuits are cut right listen listen listen can you eat that machine no
listen can you eat that machine no The machine is shaping your biscuits.
The machine is shaping your biscuits. Can you eat the machine or else the machine
Can you eat the machine or else the machine I can't eat it, you are sure, yes I am sure
I can't eat it, you are sure, yes I am sure I can't eat the machine, I can't eat it
I can't eat the machine, I can't eat it You can eat what is made by the machine, yes, the machine
You can eat what is made by the machine, yes, the machine The one that is there at that time is the constructor, okay?
The one that is there at that time is the constructor, okay? I understand it, but this programming
I understand it, but this programming Now we will see how it will be translated into the third
Now we will see how it will be translated into the third Example Sir, you had said only two, son, this
Example Sir, you had said only two, son, this Say, I'm giving you the third example for free.
Say, I'm giving you the third example for free. Yes, read it carefully, listen next
Yes, read it carefully, listen next Listen to the example, brother, I have a phone.
Listen to the example, brother, I have a phone. Okay, it's broken, okay, look, this is one
Okay, it's broken, okay, look, this is one This is a phone, sir, you have this camera in it.
This is a phone, sir, you have this camera in it. The section must be visible, right, what is visible?
The section must be visible, right, what is visible? It is visible if you look carefully
It is visible if you look carefully I'll show it to you, look carefully.
Look at what I'm trying to show What I am saying is that this camera person here
What I am saying is that this camera person here Part is this a can I show it to you wait yeah
Part is this a can I show it to you wait yeah I can see this camera part.
I can see this camera part. raised can you can you see it it raised
raised can you can you see it it raised It is right, this part is bumped.
It is right, this part is bumped. It is raised and bumped, it is the same flat surface
It is raised and bumped, it is the same flat surface If this is not me, it is a bomb, then how did you do this?
If this is not me, it is a bomb, then how did you do this? How would this have been done? This back section
How would this have been done? This back section It must have been placed like this on the machine and on top of it a
It must have been placed like this on the machine and on top of it a Such a round mould must be lying there, Dhad and
Such a round mould must be lying there, Dhad and He pulled it forward and bumped it, that's right.
He pulled it forward and bumped it, that's right. No, can you consume that machine?
No, can you consume that machine? No, this mobile is made of machine.
No, this mobile is made of machine. You can consume it again, it is not the same
You can consume it again, it is not the same that you will eat it, consume it means you
that you will eat it, consume it means you If you can use that machine,
If you can use that machine, constructor, okay so sir you want to say this
constructor, okay so sir you want to say this You are trying to say that we are something
You are trying to say that we are something we make something that
we make something that There will not be real data inside but real data will be there.
There will not be real data inside but real data will be there. The shape will be perfect, I will give you a demo, watch it.
The shape will be perfect, I will give you a demo, watch it. what will not be the constructor listen listen
what will not be the constructor listen listen listen what the constructor will not
listen what the constructor will not What will not be a constructor?
What will not be a constructor? Human means constructor human
Human means constructor human There will be no human maker
There will be no human maker one second okay means good okay something
one second okay means good okay something There will be a code that will create a human, yes, okay.
There will be a code that will create a human, yes, okay. What constructor will not be biscuit
What constructor will not be biscuit Biscuit Constructor will not be a biscuit
Biscuit Constructor will not be a biscuit will be the maker
will be the maker Yes, what if the constructor is not a bottle?
Yes, what if the constructor is not a bottle? Everyone must be a bottle maker now, brother.
Everyone must be a bottle maker now, brother. I am eagerly waiting for it, please make it once
I am eagerly waiting for it, please make it once Come let's make it, let's make it first
Come let's make it, let's make it first are bottles
are bottles Maker is a bottle maker class, said sir, this
Maker is a bottle maker class, said sir, this So this is a class, you have to listen to the whole thing.
So this is a class, you have to listen to the whole thing. You'll have to listen to me completely, okay?
You'll have to listen to me completely, okay? So when you operate the bottle maker, we
So when you operate the bottle maker, we I just saw you operate the bottle maker.
I just saw you operate the bottle maker. with new or did you go with new
with new or did you go with new So whatever bottle maker you want, bottle maker
So whatever bottle maker you want, bottle maker I can set the name etc. sir, now you tell me
I can set the name etc. sir, now you tell me You can say that brother, the name of our bottle is
You can say that brother, the name of our bottle is No, this is a Milton bottle, that's fine and this
No, this is a Milton bottle, that's fine and this 00, so this is what you sent, Milton, and
00, so this is what you sent, Milton, and 1200 Where will this gentleman go?
1200 Where will this gentleman go? In the constructor, sir, this is your constructor
In the constructor, sir, this is your constructor I will go here and you will accept the name.
I will go here and you will accept the name. each is of type string we call it public name
each is of type string we call it public name we can do it right here right here okay and we
we can do it right here right here okay and we I will accept here, the price is fine.
I will accept here, the price is fine. Which is again public price
Which is again public price It's going to be a number, very good sir
It's going to be a number, very good sir Very good question number one what to do
Very good question number one what to do What has he done to this?
What has he done to this? What have you done, what has happened, you don't understand
What have you done, what has happened, you don't understand I understand, listen here.
I understand, listen here. You have created two variables.
You have created two variables. The constructor has a name and a price
The constructor has a name and a price Okay, yes, and if I take the wife here.
Okay, yes, and if I take the wife here. If I take bottle one and give it to you sir,
If I take bottle one and give it to you sir, TSC and the file name is TA minus minus
TSC and the file name is TA minus minus The conversation happens from here, sir, here
The conversation happens from here, sir, here Watch mode has been switched on, Hum Jayenge Pyar
Watch mode has been switched on, Hum Jayenge Pyar From Inks ATA this brother will say go
From Inks ATA this brother will say go Live, this will open our L browser easily.
Live, this will open our L browser easily. much but we won't tell this brother
much but we won't tell this brother No, we need Brave, so just a second.
No, we need Brave, so just a second. I'll bring you Brave, here it is.
I'll bring you Brave, here it is. Brave Brave Sir has arrived here and
Brave Brave Sir has arrived here and We'll affectionately call it VS Code here.
We'll affectionately call it VS Code here. Come on, I will read it quickly, you can see it
Come on, I will read it quickly, you can see it Code over here, we want freedom, not freedom
Code over here, we want freedom, not freedom Sir, we have to live in the country we live in.
Sir, we have to live in the country we live in. I don't want any freedom, what I'm showing you now
I don't want any freedom, what I'm showing you now I am listening to you are listening to me
I am listening to you are listening to me are you listening are you listening to me listen
are you listening are you listening to me listen Listen
Listen Listen, new bottle maker, we have started the class.
Listen, new bottle maker, we have started the class. Okay, I am telling you a story about Rajas.
Okay, I am telling you a story about Rajas. Whenever you run the constructor
Whenever you run the constructor first run
first run So as soon as we started the class
So as soon as we started the class The constructor will run first. You have Milton
The constructor will run first. You have Milton You sent the name, you sent the price, which is
You sent the name, you sent the price, which is If price is there then both these variables are created
If price is there then both these variables are created It will be yours and why will you receive it?
It will be yours and why will you receive it? I know why there is confusion in my wife
I know why there is confusion in my wife We are doing this confusion, we will see
We are doing this confusion, we will see Weevil see butt before that in let's check bev
Weevil see butt before that in let's check bev There is a name and there is a price in the wife. There is a name in the wife.
There is a name and there is a price in the wife. There is a name in the wife. and the price in the
and the price in the is interesting interesting this
is interesting interesting this interesting fun I enjoyed it I enjoyed it
interesting fun I enjoyed it I enjoyed it I can guarantee you that you came
I can guarantee you that you came You must have enjoyed it, okay, these cases did not come, let's go.
You must have enjoyed it, okay, these cases did not come, let's go. I will show you a big example, there is one
I will show you a big example, there is one human maker okay okay
human maker okay okay First define the constructor.
First define the constructor. In the constructor that every human of yours has
In the constructor that every human of yours has It is like the name of every human being.
It is like the name of every human being. Every human of mine will have a name.
Every human of mine will have a name. If there is no edge then the baffle will be zero.
If there is no edge then the baffle will be zero. If so, I am not defining the age.
If so, I am not defining the age. Here I am not asking the user
Here I am not asking the user Look again, this is interesting for everyone.
Look again, this is interesting for everyone. Age will vary when a human is created
Age will vary when a human is created Everyone's zero is the same, are you getting my
Everyone's zero is the same, are you getting my Point is, you ask for the name in the constructor.
Point is, you ask for the name in the constructor. Meaning what you need to ask for is the constructor
Meaning what you need to ask for is the constructor Write in and don't ask for what you know
Write in and don't ask for what you know If it is already this much then its value
If it is already this much then its value You set it right here, okay?
You set it right here, okay? There is a way that I found to be a good example.
There is a way that I found to be a good example. Well said sir, you have not defined it here.
Well said sir, you have not defined it here. I will do it now, we will do it now
I will do it now, we will do it now I will do it, I said well and what happens is one
I will do it, I said well and what happens is one what else does a human being have okay a one
what else does a human being have okay a one Whether a person is handsome or not, let's say
Whether a person is handsome or not, let's say handsome okay this is a very important thing
handsome okay this is a very important thing Bhai sahib said it's okay sahib he has become handsome
Bhai sahib said it's okay sahib he has become handsome And what happens, tell me brother, one by one
And what happens, tell me brother, one by one What else does a human being have, sisters, and something else?
What else does a human being have, sisters, and something else? Would
Would I don't know if anything else happens or not, but Man
I don't know if anything else happens or not, but Man A person has only these two things
A person has only these two things This is what happens to us, public name is fine.
This is what happens to us, public name is fine. And we have defined it here.
And we have defined it here. The type is string and it is public
The type is string and it is public Handsome and we defined his type
Handsome and we defined his type Bolian account and here you go
Bolian account and here you go Brother, this has become a human maker, Hindi account
Brother, this has become a human maker, Hindi account Okay, now you have done the Hindi Hindi calculation yesterday.
Okay, now you have done the Hindi Hindi calculation yesterday. One of them went and ran it from Human Maker.
One of them went and ran it from Human Maker. You said this, sir, listen, we want to
You said this, sir, listen, we want to We want to send our value from here
We want to send our value from here Sir, we will send the value from here, shall we?
Sir, we will send the value from here, shall we? I don't want to drive like this, see, we don't drive like this
I don't want to drive like this, see, we don't drive like this I want to make it so that everyone's name becomes joyous.
I want to make it so that everyone's name becomes joyous. If the name becomes Harsh, we do not want this.
If the name becomes Harsh, we do not want this. We want every time we make a new human.
We want every time we make a new human. If you create a human, give him a new name and every time
If you create a human, give him a new name and every time Tell me if he's handsome or not, you understand.
Tell me if he's handsome or not, you understand. Yes, if I am talking then we said here Harsh and
Yes, if I am talking then we said here Harsh and I said, friend, he is very handsome.
I said, friend, he is very handsome. This is how we are speaking Human Maker
This is how we are speaking Human Maker Are you making humans with the name Harsh?
Are you making humans with the name Harsh? in the constructor means you are saying
in the constructor means you are saying Anyone inside while operating the Human Maker
Anyone inside while operating the Human Maker He will become the creator of the human maker.
He will become the creator of the human maker. will go right inside
will go right inside no no no no no no no
no no no no no no no you you one second you're saying that we
you you one second you're saying that we Like create constructor inside the class
Like create constructor inside the class yes it must have been made yes and
yes it must have been made yes and I've set the value of A to string here.
I've set the value of A to string here. If I do it then tomorrow when I become a New Human Maker
If I do it then tomorrow when I become a New Human Maker You are saying this when I am new
You are saying this when I am new I will run Human Maker. I will run Human Maker.
I will run Human Maker. I will run Human Maker. So in the constructor because A is asked for
So in the constructor because A is asked for You are saying that you will have to send a
You are saying that you will have to send a Yes, now brother is relieved, there is no error now.
Yes, now brother is relieved, there is no error now. not coming
not coming Okay, so you're saying that the constructor
Okay, so you're saying that the constructor Whatever we have taken from here
Whatever we have taken from here will have to send
will have to send Yeah, well, like I took the edge and it
Yeah, well, like I took the edge and it If you have the number then you will have to send it to me, yes Atil
If you have the number then you will have to send it to me, yes Atil Otherwise you can set it to its default value in this way
Otherwise you can set it to its default value in this way Don't set it, I mean listen, you are here right now
Don't set it, I mean listen, you are here right now What did you say? The constructor needs an edge.
What did you say? The constructor needs an edge. I want that number and you will type it and send it.
I want that number and you will type it and send it. If you don't send it then you are getting an error here.
If you don't send it then you are getting an error here. Error coming: An argument for age was not
Error coming: An argument for age was not Provided but you said here that
Provided but you said here that No, no, the age will be zero by default.
No, no, the age will be zero by default. If you don't send it, it will be by default
If you don't send it, it will be by default is zero
Understood or not, now you can think that then You do one thing like you edge here
You do one thing like you edge here I set it to zero, if we don't send it then it's a zero.
I set it to zero, if we don't send it then it's a zero. If it is done then you mean last time A was here
If it is done then you mean last time A was here Why did you create Edge as a constructor?
Why did you create Edge as a constructor? Why was it made outside? Why was it made like this?
Why was it made outside? Why was it made like this? Why was he doing this? That's why he was doing it.
Why was he doing this? That's why he was doing it. hero because if I like I set
hero because if I like I set The value of a is number and by
The value of a is number and by The default value is zero so if I don't
The default value is zero so if I don't If I send it, the value of h is zero, but if
If I send it, the value of h is zero, but if I gave him badge and Harsh became human straight away.
I gave him badge and Harsh became human straight away. Ba se se chach is rang any human straight 22
Ba se se chach is rang any human straight 22 How can a mother become one year old as soon as she is born?
How can a mother become one year old as soon as she is born? How can it be 22 years old from the stomach of
How can it be 22 years old from the stomach of Impossible are you getting my point so this
Impossible are you getting my point so this Is the flock we don't want this so we
Is the flock we don't want this so we will you remove me from here, we will say no no
will you remove me from here, we will say no no No, the constructor is only asking for what
No, the constructor is only asking for what setting us up
setting us up Is
Is Right, I understand, I understand, I understand.
Right, I understand, I understand, I understand. I understand what you are saying, there is confusion.
I understand what you are saying, there is confusion. Confusion is confusion, the solution is found
Confusion is confusion, the solution is found I am unable to walk, I understood that it was a class.
I am unable to walk, I understood that it was a class. What is the Bottle Maker Class? The Bottle Maker is a
What is the Bottle Maker Class? The Bottle Maker is a Every bottle has a plastic color
Every bottle has a plastic color What is the metal key and what is its price?
What is the metal key and what is its price? It happens, it happens, so all this happens to you
It happens, it happens, so all this happens to you If you want to ask for it in the constructor, sir, then we
If you want to ask for it in the constructor, sir, then we I said lovingly that brother, the name of the brand
I said lovingly that brother, the name of the brand Tell me this has happened, you should also go to the public.
Tell me this has happened, you should also go to the public. Even if you write, it will be public, okay, fine.
Even if you write, it will be public, okay, fine. I said, Sir, please tell me the price.
I said, Sir, please tell me the price. Your number went away, elder brother, I asked you to tell me the colour.
Your number went away, elder brother, I asked you to tell me the colour. Let this also be a string and we said
Let this also be a string and we said It would have been great if you had told the material in Hindi.
It would have been great if you had told the material in Hindi. If you are kind, it is okay, sir.
If you are kind, it is okay, sir. Now when you will make a new bottle, sir
Now when you will make a new bottle, sir If you want to run it, the first thing you should give is brand name.
If you want to run it, the first thing you should give is brand name. Is Milton giving you another thing, Price Chach
Is Milton giving you another thing, Price Chach Is 1200 you will get the third thing color color saab
Is 1200 you will get the third thing color color saab Let's assume it happens for now.
Let's assume it happens for now. It is yellow in colour, bha, okay and your last
It is yellow in colour, bha, okay and your last The thing here is the material which is metal okay
The thing here is the material which is metal okay Hai I don't know bacho material yellow hoke metal
Hai I don't know bacho material yellow hoke metal how is it but okay so this is bottle
how is it but okay so this is bottle One and Now If We
One and Now If We Check Actually I Think for Some Reason It
Check Actually I Think for Some Reason It Feld come on please come on thank you thank you so
Feld come on please come on thank you thank you so We Can't See Anything and We'll Make a Bottle Maker
We Can't See Anything and We'll Make a Bottle Maker is
You now it's correct all right now check Hain So Bottle Maker Me We Have Brand We
Hain So Bottle Maker Me We Have Brand We Have Color We Have Material and Price First
Have Color We Have Material and Price First What was happening, I told them in public.
What was happening, I told them in public. I did not write it, I read it carefully
I did not write it, I read it carefully It was said that if you directly call
It was said that if you directly call If you are writing, is it necessary to tell the public?
If you are writing, is it necessary to tell the public? So these will not be declared okay it's the
So these will not be declared okay it's the problem okay okay okay so now
problem okay okay okay so now You might have got the idea, okay, basically this
You might have got the idea, okay, basically this It is a constructor, it creates, so if tomorrow
It is a constructor, it creates, so if tomorrow I'll have to make a new bottle so I'll try it once.
I'll have to make a new bottle so I'll try it once. I can do the new bottle maker again, yes you
I can do the new bottle maker again, yes you You can do this new bottle maker okay and
You can do this new bottle maker okay and I can make a new bottle tomorrow, let's
I can make a new bottle tomorrow, let's I made a bottle from it, I made a bottle from Cello
I made a bottle from it, I made a bottle from Cello Okay, and its price is ₹10 or ₹1, let's say
Okay, and its price is ₹10 or ₹1, let's say ok it's a cheap bottle but ok
ok it's a cheap bottle but ok It is not white, it is transparent but it is fine
It is not white, it is transparent but it is fine That's the bottle for the poor, okay and then
That's the bottle for the poor, okay and then After that it will be a plastic bottle
After that it will be a plastic bottle Or where will you get metal for Rs.
Or where will you get metal for Rs. But okay this is because you're getting my
But okay this is because you're getting my Point b1 is one bottle bit is another bottle both
Point b1 is one bottle bit is another bottle both Are built with bottle makers, but their brands
Are built with bottle makers, but their brands Are different the price is different the colour
Are different the price is different the colour is different these material different you got the
is different these material different you got the When will you understand the point and more, then listen.
When will you understand the point and more, then listen. Then listen, you will get an audio player in the future.
Then listen, you will get an audio player in the future. Sir, you want to make me your friend, neither I nor
Sir, you want to make me your friend, neither I nor I want to make a new song
I want to make a new song Each song in the application has a thumbnail
Each song in the application has a thumbnail The song will have a name
The song will have a name There will be a timeline, there will be a theme to the song
There will be a timeline, there will be a theme to the song Can you tell me who sang one of the songs?
Can you tell me who sang one of the songs? If you are an artist then how will you make it, so here we are
If you are an artist then how will you make it, so here we are But we'll make a class music, everything's fine
But we'll make a class music, everything's fine Instead of Music Maker, they call it Music.
Instead of Music Maker, they call it Music. Akela and Constructor will speak in Hindi
Akela and Constructor will speak in Hindi We will lovingly call it End Music
We will lovingly call it End Music So we will write that brother public name
So we will write that brother public name Strings okay we know music
Strings okay we know music Our artist will be his, okay, so this
Our artist will be his, okay, so this The way he will write we know big
The way he will write we know big Brother, music has a thumbnail, okay?
Brother, music has a thumbnail, okay? Yes, now the thumbnail man can also give it.
Yes, now the thumbnail man can also give it. I may not even give it, it depends, okay.
I may not even give it, it depends, okay. If he lets me live, I will keep something. If he doesn't, I won't.
If he lets me live, I will keep something. If he doesn't, I won't. We'll keep something else, we'll see about that too, okay?
We'll keep something else, we'll see about that too, okay? If the thumbnail string is not there then we
If the thumbnail string is not there then we You can set the default value right here.
You can set the default value right here. is some thumbnail while ok is the default thumbnail
is some thumbnail while ok is the default thumbnail Okay and apart from that we said sir our
Okay and apart from that we said sir our The public thumbnail our public can
The public thumbnail our public can Ho length of the song is this we got milli seconds
Ho length of the song is this we got milli seconds If I want to save it, then we can go ahead and get it.
If I want to save it, then we can go ahead and get it. Apart from public lets,
Apart from public lets, Available from Lets from Lets from Lets
Available from Lets from Lets from Lets Available Free Free or If Not Free
Available Free Free or If Not Free Otherwise, this is a boolean, so we have this here.
Otherwise, this is a boolean, so we have this here. I have accepted it, everything is fine now this is ours.
I have accepted it, everything is fine now this is ours. You can see the constructor function in Hindi.
You can see the constructor function in Hindi. Yes, we have built it here, okay?
Yes, we have built it here, okay? Now if you need to setup anything anywhere
Now if you need to setup anything anywhere So you can setup whatever you want for it.
So you can setup whatever you want for it. You can drive it inside, this is what I am giving you
You can drive it inside, this is what I am giving you I am showing you some shorthand.
I am showing you some shorthand. I'm a bit confused about what the tutorials will show.
I'm a bit confused about what the tutorials will show. I will make a duplicate and show it to you.
I will make a duplicate and show it to you. Some tutorials on how to make your
Some tutorials on how to make your You will see what he does, basically first
You will see what he does, basically first Let's create the public name here.
Let's create the public name here. This is how they create it here.
This is how they create it here. Yes, the public name is one, okay, and then
Yes, the public name is one, okay, and then What do they do then they go from here to
What do they do then they go from here to The public removes it, okay, that's just straight
The public removes it, okay, that's just straight A second, yes, we will see that now.
A second, yes, we will see that now. And in this way, public artist
And in this way, public artist It will be okay, the public thumbnail will be and that
It will be okay, the public thumbnail will be and that In this manner the public length will be and public
In this manner the public length will be and public It will be free, okay, then what about that?
It will be free, okay, then what about that? Will remove, public will remove
Will remove, public will remove The most public has moved away, okay sir, and then inside
The most public has moved away, okay sir, and then inside I'll go and setup this so this dot name e
I'll go and setup this so this dot name e To name it brother, if you see it by name then it will be red
To name it brother, if you see it by name then it will be red The necessary thing has been removed, okay, this is that artist.
The necessary thing has been removed, okay, this is that artist. Artist This Dot Thumbnail Thumbnail This Dot
Artist This Dot Thumbnail Thumbnail This Dot length length and this dot free free okay
length length and this dot free free okay So I will write this thing for so long.
So I will write this thing for so long. How can I write it in one line?
How can I write it in one line? Because when type script gives you features
Because when type script gives you features If so, why not inside the constructor
If so, why not inside the constructor Only you can declare it and bring it to justice.
Only you can declare it and bring it to justice. You can do it right there, so why not this?
You can do it right there, so why not this? I can say you are saving number of lines of
I can say you are saving number of lines of Code then why not when I in a single line
Code then why not when I in a single line I can write and give people easy
I can write and give people easy It also matters what is happening so if I
It also matters what is happening so if I To you
To you Let me explain, here the name is in one line.
Let me explain, here the name is in one line. is also becoming a variable and its
is also becoming a variable and its The value should be set which I get from new music.
The value should be set which I get from new music. If I send it at the time of
If I send it at the time of I will send the value and it will be set here.
I will send the value and it will be set here. If I send you the music, Chal Chaiya
If I send you the music, Chal Chaiya Chaiya Chal Chaiya Chaiya Okay so this music
Chaiya Chal Chaiya Chaiya Okay so this music The name is Saab ts about it than its
The name is Saab ts about it than its artist
artist Hey Harsh Sharma, I am the one who sang, I did not sing.
Hey Harsh Sharma, I am the one who sang, I did not sing. You might not have realized that actually I
You might not have realized that actually I Didn't sing really okay thumbnail if
Didn't sing really okay thumbnail if If I gave it, it didn't matter, it doesn't matter
If I gave it, it didn't matter, it doesn't matter No, but I'll give you thumbnails.
No, but I'll give you thumbnails. If I don't want to give you these cases then you leave them.
If I don't want to give you these cases then you leave them. Give it to him, okay, I have given him the length.
Give it to him, okay, I have given him the length. 1200 whatever it is, it is fine, is it free or not?
1200 whatever it is, it is fine, is it free or not? Yes brother, this is not free, it is very expensive.
Yes brother, this is not free, it is very expensive. The song is now This Guy Says Ki An Argument
The song is now This Guy Says Ki An Argument For free was not provided why that
For free was not provided why that Because I think something
Because I think something Missed thumbnail only asking for thumbnail late
Missed thumbnail only asking for thumbnail late I give it to you but I can't give it to you.
I give it to you but I can't give it to you. If I can't give it then then then then then
If I can't give it then then then then then Then you can give the tank a strong but it's okay
Then you can give the tank a strong but it's okay But okay, for now, okay, it's fine, cool.
But okay, for now, okay, it's fine, cool. Okay, so I'll do one thing, one thing.
Okay, so I'll do one thing, one thing. If I do this If I do this and I go
If I do this If I do this and I go here no it one wont work ok let's go with
here no it one wont work ok let's go with This is a blank string for now.
This is a blank string for now. Come on, let's go here, Harsh Sharma
Come on, let's go here, Harsh Sharma The artist is and we have put the thumbnail here.
The artist is and we have put the thumbnail here. I have not given 1200, its length is and it is free
I have not given 1200, its length is and it is free what is there what is not there okay so now here
what is there what is not there okay so now here Our music is ready sir so m1
Our music is ready sir so m1 I will save it with lots of love.
I will save it with lots of love. Hi great and that's it, save it, okay.
Hi great and that's it, save it, okay. Let's go, it's not late, it's late
Let's go, it's not late, it's late Okay, so here we have our music.
Okay, so here we have our music. The value of the thumbnail is ready, obviously you
The value of the thumbnail is ready, obviously you You can see what I provided here.
You can see what I provided here. But it has not been provided, I believe this is the way to go.
But it has not been provided, I believe this is the way to go. I wanted it for some reason but it's not working.
I wanted it for some reason but it's not working. Yes, but this is not working, why is it not working?
Yes, but this is not working, why is it not working? Because the ct will not allow me
Because the ct will not allow me Antya Karoon Yahan Pe Na Mujhe Ek Check
Antya Karoon Yahan Pe Na Mujhe Ek Check I was wondering if there was anyone there
I was wondering if there was anyone there I can try another method on him but
I can try another method on him but Sometimes small things in big cities
Sometimes small things in big cities If it happens then basically I am a constructor
If it happens then basically I am a constructor I will teach you this, I am just showing you.
I will teach you this, I am just showing you. You should basically use constructor function the most
You should basically use constructor function the most All A can say that it moves first
All A can say that it moves first If the variable is defined correctly then
If the variable is defined correctly then Accordingly, the thumbnail will also be defined, so we
Accordingly, the thumbnail will also be defined, so we If the thumbnail value is blank,
If the thumbnail value is blank, By the way, if you don't know, then if one of you
By the way, if you don't know, then if one of you If you have sent a blank string then this is a
If you have sent a blank string then this is a False value is ok so blank here
False value is ok so blank here string will come in place of thumbnail and this is
string will come in place of thumbnail and this is A false value will not come here.
A false value will not come here. False becomes true so basically when
False becomes true so basically when When will this line run? This line will run then
When will this line run? This line will run then When you have set the thumbnail value to black
When you have set the thumbnail value to black If the string sent is right then in that case
If the string sent is right then in that case This dot thumbnail now we have this dot thumbnail
This dot thumbnail now we have this dot thumbnail Why is it written this dot why is it written this
Why is it written this dot why is it written this What's next in the video, but for now
What's next in the video, but for now Just look at this thumbnail, what does it mean?
Just look at this thumbnail, what does it mean? The thumbnail variable inside is this
The thumbnail variable inside is this Thumbnail means the thumbnail variable inside it
Thumbnail means the thumbnail variable inside it he is he
he is he That would be some thumbnail that I have here
That would be some thumbnail that I have here It is written okay so here how it will
It is written okay so here how it will Work how that will work the thing is you think
Work how that will work the thing is you think You must be staying at our place again, this is what we have
You must be staying at our place again, this is what we have What is the use of the default parameter given?
What is the use of the default parameter given? Case is his use case right now looks like
Case is his use case right now looks like that's not but but okay this is what it
that's not but but okay this is what it This is how we can handle it, right?
This is how we can handle it, right? So I believe you have understood this, let's
So I believe you have understood this, let's let's try this
let's try this Then just a second can I go to Brave Yes
Then just a second can I go to Brave Yes ok so ting ting let's come here
ok so ting ting let's come here If thumbnail is not provided then some thumbnail
If thumbnail is not provided then some thumbnail Japak so now we have music one with us we
Japak so now we have music one with us we You have created a music in this way.
You have created a music in this way. You can make as much music as you want.
You can make as much music as you want. Constructor Function Class Constructor
Constructor Function Class Constructor The function logic is all lying outside, you know?
The function logic is all lying outside, you know? Key Music Music Music [ __ ] Music
Key Music Music Music [ __ ] Music Banana Banana So This Is Another Music For Us
Banana Banana So This Is Another Music For Us New Music Saab Theek Hai And We Are Going
New Music Saab Theek Hai And We Are Going With Another Music and the Music
see the sage See
See See here
See here not there
not there Fake dekh pleg
Illness will be a bad solution for everyone, okay friends. remember
remember It is very nice music and it was sung by
It is very nice music and it was sung by The municipality has sung a very big song.
The municipality has sung a very big song. It's not everyone's cup of tea
It's not everyone's cup of tea Thumbnail will be garbage dat png very nice and
Thumbnail will be garbage dat png very nice and It's gonna be pretty big
It's gonna be pretty big This song is a perfect solution to society.
This song is a perfect solution to society. This song is 200000 milliseconds or
This song is 200000 milliseconds or Seconds song is Let's Say and it's free
Seconds song is Let's Say and it's free Is it there? It's absolutely free. It's absolutely free. The song is absolutely free.
Is it there? It's absolutely free. It's absolutely free. The song is absolutely free. okay so we have m2 so m1 a music
okay so we have m2 so m1 a music m2 is another music both are music
m2 is another music both are music And the name of the first one is this and the name of the second one is this
And the name of the first one is this and the name of the second one is this So our constructor is something like this
So our constructor is something like this The functions work, everything is fine
The functions work, everything is fine Going into the future, whatever song you
Going into the future, whatever song you You will have to change that particular song.
You will have to change that particular song. If you catch him and change his name
If you catch him and change his name In the future, you will write m2 name like this and
In the future, you will write m2 name like this and If his name became some other music then you
If his name became some other music then you changed all is well now if y check m1 now
changed all is well now if y check m1 now This is also the m2 now it has become someone else
This is also the m2 now it has become someone else music and that brings us to the next
music and that brings us to the next Whatever we read next on the problem is fine.
Whatever we read next on the problem is fine. what's the next problem with this method so I
I will make its value Halwa from Bhainchaud So this is very messed up, so if you
So this is very messed up, so if you If we check m1 at this time, its
If we check m1 at this time, its Artist Halwa Ho Chuka Hats a Big
Artist Halwa Ho Chuka Hats a Big Problem Right That Should Not Happen It Should
Problem Right That Should Not Happen It Should not be allowed to do so how the [ __ ] we will
not be allowed to do so how the [ __ ] we will handle this is the big thing okay so now
handle this is the big thing okay so now Where am I taking you first?
Where am I taking you first? Come to the syllabus
Come to the syllabus Quickly, the syllabus got a little messed up, friends.
Quickly, the syllabus got a little messed up, friends. I blew up the P syllabus
I blew up the P syllabus Please, okay, let's move on to the next topic.
Please, okay, let's move on to the next topic. Let's see what the syllabus is.
Let's see what the syllabus is. [music]
[music] At least I know about the next topic here.
At least I know about the next topic here. This is it and this is what you have to read but not from that
This is it and this is what you have to read but not from that First, I tell you who I really am
First, I tell you who I really am I want to introduce you to her, her name is Dis.
I want to introduce you to her, her name is Dis. keywords I want you guys to first de
keywords I want you guys to first de Understand it well and only then we can proceed further.
Understand it well and only then we can proceed further. Grow up because until this keyword is understood
Grow up because until this keyword is understood The hour will come, we will not understand the next quote
The hour will come, we will not understand the next quote what is it okay so come on you close up and
what is it okay so come on you close up and you turn on okay let's turn on
you turn on okay let's turn on Look, look, this keyword is absolutely halwa
Look, look, this keyword is absolutely halwa The concept is the first thing I want in every way
The concept is the first thing I want in every way Let me explain this keyword, understand it like this
Let me explain this keyword, understand it like this When we are inside any class
When we are inside any class It is inside the class and we are in different
It is inside the class and we are in different Methods can be created, methods make something happen
Methods can be created, methods make something happen We will see what happens now when different
We will see what happens now when different When methods are created, we need to find some
When methods are created, we need to find some If we want to touch the variable then we need to use this
If we want to touch the variable then we need to use this We have to give reference that we are from the same class.
We have to give reference that we are from the same class. Talking about OK Demo
Talking about OK Demo I'll give you a class A B CD
I'll give you a class A B CD It's done, we have a let's method.
It's done, we have a let's method. So before that there is a variable name and its
So before that there is a variable name and its For value I directly Harsh Rakh
For value I directly Harsh Rakh I'm giving it okay now there's a method get a
I'm giving it okay now there's a method get a Details Get Details OK or Accept
Details Get Details OK or Accept There is a method called change name, okay, this is a
There is a method called change name, okay, this is a method is change name method means function is ok
method is change name method means function is ok If you have created a function inside the class then it
If you have created a function inside the class then it Now it's called method, not function.
Now it's called method, not function. What you have to do is you have to do it
What you have to do is you have to do it How to access the handle once?
How to access the handle once? If you do it then you will think brother, I am just a name
If you do it then you will think brother, I am just a name If you write it this way, you will see it as if
If you write it this way, you will see it as if I wrote my name here and suggestions came.
I wrote my name here and suggestions came. As soon as I press on it, it
As soon as I press on it, it This dot name will be created. Why yes listen.
This dot name will be created. Why yes listen. Anything created within your class
Anything created within your class If you are accessing the variable in the class
If you are accessing the variable in the class somewhere inside you'll find him with this
somewhere inside you'll find him with this That's all you need to access for now.
That's all you need to access for now. Please understand that my definition is not quite correct.
Please understand that my definition is not quite correct. I'll know if you write your name here.
I'll know if you write your name here. You are writing the name directly, okay name
You are writing the name directly, okay name Dotu you are writing in this manner but this is
Dotu you are writing in this manner but this is Not allowed right, whatever your logic is
Not allowed right, whatever your logic is In your methods you write get lets say
In your methods you write get lets say Change Some Stuff is a method, inside it you
Change Some Stuff is a method, inside it you If you write your logic then whenever you
If you write your logic then whenever you If you are targeting a variable then you do this.
If you are targeting a variable then you do this. If you write the name in this manner then this
If you write the name in this manner then this Let's assume we're logging
Let's assume we're logging You cannot write the name of the name.
You cannot write the name of the name. You will have to write this dot name so you can write any
You will have to write this dot name so you can write any to your variable or to any other variable inside the class
to your variable or to any other variable inside the class When you target the entity, you will
When you target the entity, you will You will do it with reference, I will give you one more demo.
You will do it with reference, I will give you one more demo. Like there's another change sum
Like there's another change sum More stuff okay this is another method now
More stuff okay this is another method now Let's assume there is a log in this too.
Let's assume there is a log in this too. log hai ok you need to change more some more stuff
log hai ok you need to change more some more stuff If you want to change some stuff then you
If you want to change some stuff then you What can't I write? Change some more stuff.
What can't I write? Change some more stuff. You cannot write directly, you have to press enter
You cannot write directly, you have to press enter Return to this dot change mode some more
Return to this dot change mode some more If you have to see the stuff then basically this means
If you have to see the stuff then basically this means Hey friend, how do I explain it, it's very simple.
Hey friend, how do I explain it, it's very simple. The hero is absolutely simple inside the class
The hero is absolutely simple inside the class In any logic, any method, you
In any logic, any method, you You don't need to access anything else inside the class.
You don't need to access anything else inside the class. which is not part of this method then you have to
which is not part of this method then you have to I will have to give reference by dotting this, okay
I will have to give reference by dotting this, okay This dot I wrote the name so it's okay name
This dot I wrote the name so it's okay name I got it and then if I want to access it
I got it and then if I want to access it If so, I'll write this dot change some more
If so, I'll write this dot change some more stuff okay so I can access it
stuff okay so I can access it Right now let me tell you one more thing, see
Right now let me tell you one more thing, see I created a variable here called p.
I created a variable here called p. If the value is 12, should I get this dot only?
If the value is 12, should I get this dot only? You don't have to write it here at all if you
You don't have to write it here at all if you You are creating something inside someone.
You are creating something inside someone. So it's accessible throughout, okay?
So it's accessible throughout, okay? One thing to take care of, look at one more thing
One thing to take care of, look at one more thing If I change this dot let's say a b cd e 12
If I change this dot let's say a b cd e 12 This does hij = 12 make
This does hij = 12 make If I give it, is it allowed or not?
If I give it, is it allowed or not? It is not allowed, so look carefully.
It is not allowed, so look carefully. Property GHIJ does not exist on
Property GHIJ does not exist on Any type A B CD to upwards up
Any type A B CD to upwards up Cannot flow stream means method
Cannot flow stream means method You are from the inside, not from the outside.
You are from the inside, not from the outside. You can build it outside, it's okay.
You can build it outside, it's okay. Okay, and you can make your properties outside.
Okay, and you can make your properties outside. Or create your own in the constructor
Or create your own in the constructor properties and then you can in different methods
properties and then you can in different methods You can access it through this so this
You can access it through this so this A little bit of science, okay, this is what happened.
A little bit of science, okay, this is what happened. Our last time we made a bottle maker
Our last time we made a bottle maker Was it a bottle maker or something like that, was it music or
Was it a bottle maker or something like that, was it music or There was something like this, there was something of ours when
There was something like this, there was something of ours when We had created the constructor, so in it we
We had created the constructor, so in it we A variable was made public
A variable was made public Name Public Name Okay, this has become Public
Name Public Name Okay, this has become Public Name Now if you go inside and access this name
Name Now if you go inside and access this name If you want to do it, you will have to write to me, sir.
If you want to do it, you will have to write to me, sir. Okay, now listen carefully to this.
Okay, now listen carefully to this. Two things happened because of the line, brother, I got confused.
Two things happened because of the line, brother, I got confused. This line has caused two things to happen.
This line has caused two things to happen. First, a variable is created with the name name.
First, a variable is created with the name name. The variable is declared and created.
The variable is declared and created. So what has been created is this dot name
So what has been created is this dot name Okay, you are getting confused and so are I.
Okay, you are getting confused and so are I. I'm confused and I can read your mind a little bit.
I'm confused and I can read your mind a little bit. I can do it
I can do it listen public name public name constructor
listen public name public name constructor I created anything you made, with this you give
I created anything you made, with this you give You work, okay, what's the first thing you do?
You work, okay, what's the first thing you do? If you create a variable, it is created.
If you create a variable, it is created. Make a variable a variable
Make a variable a variable name is good okay it is done inside the
name is good okay it is done inside the I went inside the class and it became so, yes how did it become?
I went inside the class and it became so, yes how did it become? It must have been made like this, look it must have been made like this
It must have been made like this, look it must have been made like this It must have happened that this must have happened, it must have been written like this
It must have happened that this must have happened, it must have been written like this Because of this such a variable would have been created
Because of this such a variable would have been created Yes, it's done, okay, it's done, yes, one more name.
Yes, it's done, okay, it's done, yes, one more name. Name Name Name Name Function
Name Name Name Name Function This function named name will also be a parameter.
This function named name will also be a parameter. A parameter is two things, a name.
A parameter is two things, a name. alone name only name only name meaning
alone name only name only name meaning This parameter is this parameter name and one is this
This parameter is this parameter name and one is this dot name okay this this dot name one what
dot name okay this this dot name one what this dot name this dot name what is our
this dot name this dot name what is our The created variable is okay to remember so when
The created variable is okay to remember so when What is happening as I write this?
What is happening as I write this? When I turn on the bottle maker
When I turn on the bottle maker Hey, I'll run the bottle maker and I'll leave from here.
Hey, I'll run the bottle maker and I'll leave from here. I said Min, so Milton, whatever went, went, name
I said Min, so Milton, whatever went, went, name I'm okay Milton went in the name.
I'm okay Milton went in the name. Gaya this dot name didn't go Milton went
Gaya this dot name didn't go Milton went In the name, this dot name is raised from the name
In the name, this dot name is raised from the name The variable will have been created and saved in it
The variable will have been created and saved in it If you understand, then basically here a variable
If you understand, then basically here a variable The public name must have been created and saved in it.
The public name must have been created and saved in it. Your name is Joe Milton, right?
Your name is Joe Milton, right? In these cases, this constructor pattern will help you
In these cases, this constructor pattern will help you I can tell you a little bit indirectly
I can tell you a little bit indirectly You are feeling confused then you can do this
You are feeling confused then you can do this You should make the public name like this and then you can go here
You should make the public name like this and then you can go here Just define the name, now you can go inside
Just define the name, now you can go inside You can call it this dot name this dot name
You can call it this dot name this dot name Meaning your name will be equal to its value.
Meaning your name will be equal to its value. Received inside the constructor from Milton Name
Received inside the constructor from Milton Name Right why is it giving this error because new
Right why is it giving this error because new If you haven't applied it, apply it again.
If you haven't applied it, apply it again. And is everything going well for us? Yes, sir.
And is everything going well for us? Yes, sir. It's going great, okay, let's go later.
It's going great, okay, let's go later. Go well, this is working just perfect
Go well, this is working just perfect You can clearly see I follow this pattern
You can clearly see I follow this pattern I don't do it, I do it right here
I don't do it, I do it right here I will write publicly that everything is fine and I know
I will write publicly that everything is fine and I know Because I have no need to do this dot name
Because I have no need to do this dot name No need because there is so much code.
No need because there is so much code. By just writing it my variable was also created and
By just writing it my variable was also created and Its value is also set, so this
Its value is also set, so this A variable named publicName would also have been created
A variable named publicName would also have been created And the Milton value must have also been set, you are
And the Milton value must have also been set, you are Getting my point right so I have to double down
Getting my point right so I have to double down There is no need to write The Answer is
There is no need to write The Answer is Still Same The Answer Still Same Right It It
Still Same The Answer Still Same Right It It That's easy, so what is one way here?
That's easy, so what is one way here? Create a public name Create a public name from here
Create a public name Create a public name from here Remove the public and just take the name here and
Remove the public and just take the name here and Tell me the type and go inside and do this.
Tell me the type and go inside and do this. Name it, name it, this is another way
Name it, name it, this is another way Each time you create as many variables as you want
Each time you create as many variables as you want Accept here, that much inside this data
Accept here, that much inside this data Name by this d by this dot email
Name by this d by this dot email Keep setting the first method, the second method is this
Keep setting the first method, the second method is this Remove everything where you added the variable.
Remove everything where you added the variable. Defined right there in the constructor
Defined right there in the constructor something public or private or protected
something public or private or protected We will see what happens now, please set it.
We will see what happens now, please set it. What is Public Private Protected
What is Public Private Protected The next topic is bro okay so
Datchi is privately protected and Public Pay, which we call Access Modified
Public Pay, which we call Access Modified If you don't enjoy it brother, then it will be done.
If you don't enjoy it brother, then it will be done. Will the money go back from there? Let's go.
Will the money go back from there? Let's go. [music]
[music] Quickly brother, we have reached here, now what?
Quickly brother, we have reached here, now what? Access
I will teach you in modified form, so now you can take it. Very bad meditation sir, okay now you come.
Very bad meditation sir, okay now you come. We created a class here with me.
We created a class here with me. And let's make our own bottle maker
And let's make our own bottle maker Pass bottle maker is a class okay
Pass bottle maker is a class okay The constructor function will obviously be
The constructor function will obviously be constructor function is okay brother we have
constructor function is okay brother we have I said from here in Hindi that friend here
I said from here in Hindi that friend here Pay should be a variable named name
Pay should be a variable named name And its value will be of string type.
And its value will be of string type. We'll go and define okay so new
We'll go and define okay so new bottle maker and I said I have to give my name
bottle maker and I said I have to give my name That's why I gave him the name, brother Milton.
That's why I gave him the name, brother Milton. Okay, and here we saved it in b1.
Okay, and here we saved it in b1. We went to check our
We went to check our on the lovely browser and said b1 and
on the lovely browser and said b1 and Here we have bottle maker in Hindi.
Here we have bottle maker in Hindi. I saw the bottle on it, okay do one thing, sister [ __ ].
I saw the bottle on it, okay do one thing, sister [ __ ]. Stop this epic pain first, alright okay
Stop this epic pain first, alright okay So the story has become absolutely clear sir.
So the story has become absolutely clear sir. We have a bottle maker here.
We have a bottle maker here. It is a constructor, we have named it set.
It is a constructor, we have named it set. It's done, okay, what should I do now?
It's done, okay, what should I do now? What is Public Private Protected
What is Public Private Protected Come and I'm taking you to understand this.
Come and I'm taking you to understand this. I'm going to teach you some interesting things.
I'm going to teach you some interesting things. Yes, let's go, we have a public name here.
Yes, let's go, we have a public name here. We have created a public place here, haven't we?
We have created a public place here, haven't we? I made up a name and everything works this way.
I made up a name and everything works this way. Public Private Protected
Public Private Protected What is the difference, like if I had public
What is the difference, like if I had public I created the name and I have added the name bottle here.
I created the name and I have added the name bottle here. I have given you Milton and I will give you
I have given you Milton and I will give you I am showing interesting facts, enjoy it.
I am showing interesting facts, enjoy it. you will go okay and go later if
you will go okay and go later if I named
Lulu question number one can I do that Yes, let's see if you can definitely make a change.
Yes, let's see if you can definitely make a change. Once done, the name inside b1 was Bottle One.
Once done, the name inside b1 was Bottle One. Her name inside became Lulu
Her name inside became Lulu If I make it private, if I make it
If I make it private, if I make it If I make it private, can it happen now?
If I make it private, can it happen now? b1 lu lu lu ok
b1 lu lu lu ok This is the first time an error is occurring here in Hindi.
This is the first time an error is occurring here in Hindi. Laga Property Name Is Private And Only
Laga Property Name Is Private And Only Accessible with a best in class bottle maker
Accessible with a best in class bottle maker If I tell you an interesting fact, then this total
If I tell you an interesting fact, then this total Together he is saying that it cannot happen or
Together he is saying that it cannot happen or It is not possible but if you go and check
It is not possible but if you go and check If you do, his name has changed again.
If you do, his name has changed again. You will think that sisterhood
Or we said let's go and we went and checked. If I did this, this is what actually changed.
If I did this, this is what actually changed. The problem is with TypeScript.
The problem is with TypeScript. The script will execute your code no matter how wrong it is.
The script will execute your code no matter how wrong it is. You have written the wrong code, compile your code
You have written the wrong code, compile your code TypeScript will run your code.
TypeScript will run your code. She will give it but will tell you before leaving that sir
She will give it but will tell you before leaving that sir Look, there's something wrong with your code.
Look, there's something wrong with your code. you can see from here you can see it okay
you can see from here you can see it okay What is the difference between private and protected?
What is the difference between private and protected? Let me explain, private private of
Let me explain, private private of First they understand what the difference is in the public.
First they understand what the difference is in the public. are public means this property name
are public means this property name This is a property, you can find it anywhere in the entire class.
This is a property, you can find it anywhere in the entire class. Also change the first thing from class you
Also change the first thing from class you Inherit the second thing outside the class
Inherit the second thing outside the class When you change any variable, its value is
When you change any variable, its value is I have made a new bottle of it.
I have made a new bottle of it. Even if you change it inside, there is no problem.
Even if you change it inside, there is no problem. If there is no problem then three things
If there is no problem then three things I am explaining, listen to the first public
I am explaining, listen to the first public Meaning you make some changes in the constructor
Meaning you make some changes in the constructor No problem, there is none here anyway.
No problem, there is none here anyway. There is no problem, okay, secondly you
There is no problem, okay, secondly you Change to some other method, change changing
Change to some other method, change changing Created a method named changing here now
Created a method named changing here now Pay change its value to this dot this
Pay change its value to this dot this Dot name and its value you did Harsh
Dot name and its value you did Harsh ok no problem here either
ok no problem here either no problem okay you even then
no problem okay you even then What does it mean that public would mean that
What does it mean that public would mean that Make the change in the constructor there anyway
Make the change in the constructor there anyway No problem arises, it doesn't change.
No problem arises, it doesn't change. There is no initialism, you can narrate from class
There is no initialism, you can narrate from class Look, if we go and do it later, then also no one
Look, if we go and do it later, then also no one There is no problem and you can change it there.
There is no problem and you can change it there. There is no problem, public means open value.
There is no problem, public means open value. Everyone has value, where do you want to change it?
Everyone has value, where do you want to change it? No problem if you are going to Goa sometime.
No problem if you are going to Goa sometime. Sometimes I am going to Lucknow and coming back to eat Nihari.
Sometimes I am going to Lucknow and coming back to eat Nihari. Stayed and then did not agree, then Bullet
Stayed and then did not agree, then Bullet There was Rs 25,000 cash on the ass and in the bag, no one said
There was Rs 25,000 cash on the ass and in the bag, no one said This is an army vehicle, roaming freely.
This is an army vehicle, roaming freely. So this is a public right, sir.
So this is a public right, sir. What does private mean?
What does private mean? Bhaiya meaning of private in Hindi
Bhaiya meaning of private in Hindi You have initialized the name here, sir.
You have initialized the name here, sir. We have created the value of your name here.
We have created the value of your name here. Sir, okay now you go ahead here.
Sir, okay now you go ahead here. But let's assume for now I have b1
But let's assume for now I have b1 Initialize it by checking the value of b1
Initialize it by checking the value of b1 What is his name right now? It's Milton.
What is his name right now? It's Milton. I sent it from here, okay, you future
I sent it from here, okay, you future I'll go and run b1 dot changing tomorrow which
I'll go and run b1 dot changing tomorrow which that our bottle maker has a method
that our bottle maker has a method The methods you have added to the class
The methods you have added to the class All the methods are also there in b1, I will explain them later.
All the methods are also there in b1, I will explain them later. Because b1 is a new bottle maker, so the
Because b1 is a new bottle maker, so the The bottle maker contains variables plus methods.
The bottle maker contains variables plus methods. All of that is in b1, okay, so its in b1.
All of that is in b1, okay, so its in b1. Meaning there is also change, so when we changed
Meaning there is also change, so when we changed If you have started it then now check the name of b1
If you have started it then now check the name of b1 His name is sir Harsh, okay so you
His name is sir Harsh, okay so you Change the public inside the bottle maker as well
Change the public inside the bottle maker as well You can change your private anywhere.
You can change your private anywhere. You can go anywhere but if you take this class
You can go anywhere but if you take this class Inherited and created a new class from it
Inherited and created a new class from it We have not yet learned anything further by irritating it.
We have not yet learned anything further by irritating it. See, only the keyword with extensions is used.
See, only the keyword with extensions is used. If you did that, it would be private.
If you did that, it would be private. variable or private name whichever you
variable or private name whichever you You will build it only in this class
You will build it only in this class It is accessible It is not accessible outside
It is accessible It is not accessible outside I know you don't understand the hour, but
I know you don't understand the hour, but First, we will proceed with the video lecture.
First, we will proceed with the video lecture. I guarantee it will come to an end.
I guarantee it will come to an end. Okay, so let's go, okay, so simple.
Okay, so let's go, okay, so simple. Simple, do everything quickly
Simple, do everything quickly Constructors create constructors
Constructors create constructors Sir, we have made a name here.
Sir, we have made a name here. should be name should be public public
should be name should be public public We have given the name here to the public and
We have given the name here to the public and I told my brother here in Hindi.
I told my brother here in Hindi. that you are a person named name string human
that you are a person named name string human So it's not like that, but it's okay, whatever it is.
So it's not like that, but it's okay, whatever it is. bottle maker bottle maker bottle maker aa aa brother
bottle maker bottle maker bottle maker aa aa brother bottle maker okay and here we have bottle
bottle maker okay and here we have bottle I made Milton's bottle, okay Milton's bottle
I made Milton's bottle, okay Milton's bottle It's done and Bav is our pay variable, okay?
It's done and Bav is our pay variable, okay? Okay, and it won't feel new here.
Okay, and it won't feel new here. How will you enjoy it without new things, okay?
How will you enjoy it without new things, okay? New bottle maker Milton Names set
New bottle maker Milton Names set Milton because his type is public so
Milton because his type is public so Brother, this can be used anywhere now.
Brother, this can be used anywhere now. I created a new class here.
I created a new class here. Metal Bottle Maker
Metal Bottle Maker Metal bottle maker which extends bottle
Metal bottle maker which extends bottle Maker, now understand it in Hindi, even before
Maker, now understand it in Hindi, even before Have you read the meaning of extensions in the interface?
Have you read the meaning of extensions in the interface? Did you overtake the bottle maker?
Did you overtake the bottle maker? It means whatever is in it is already in it.
It means whatever is in it is already in it. Meaning, it not only has the name but also you four
Meaning, it not only has the name but also you four You can add more things, okay, so he said sir.
You can add more things, okay, so he said sir. I don't understand what it means, it has its own
I don't understand what it means, it has its own constructor maybe okay so you
constructor maybe okay so you I just need to define the name, I know it.
I just need to define the name, I know it. You still don't understand what this is
You still don't understand what this is It's happening, I know about it, okay
It's happening, I know about it, okay but two minutes
but two minutes Wait, you won't understand this right now.
Wait, you won't understand this right now. Wait, inheritance, we haven't yet.
Wait, inheritance, we haven't yet. I will read it, ignore it for now.
I will read it, ignore it for now. This section is a bit complicated for me.
This section is a bit complicated for me. Come along, you will understand by the end of the video
Come along, you will understand by the end of the video Just ignore this part for now.
Just ignore this part for now. Kill me, okay please, okay, okay now.
Kill me, okay please, okay, okay now. You are here because it is public, otherwise
You are here because it is public, otherwise You can use it right here.
You can use it right here. So let's try using the gate.
So let's try using the gate. Value ok get value get value and we
Value ok get value get value and we Get value done from lets from lets
Get value done from lets from lets From Lets to Lets to Get Value
From Lets to Lets to Get Value method that will lock the console this dot
method that will lock the console this dot Name is okay, so now I have
Name is okay, so now I have Metal bottle maker has been made in place of bottle maker
Metal bottle maker has been made in place of bottle maker Metal Bottle Maker Ok Metal Bottle Maker
Metal Bottle Maker Ok Metal Bottle Maker also named Milton in the metal bottle maker
also named Milton in the metal bottle maker that metal must have gone into the bottle's constructor
that metal must have gone into the bottle's constructor Which is my super super meaning to this class
Which is my super super meaning to this class passed to its constructor
passed to its constructor If this is happening then the metal bottle maker
If this is happening then the metal bottle maker I named it Milton, which it received.
I named it Milton, which it received. Now it was his job to set the name.
Now it was his job to set the name. I passed that name to the super.
I passed that name to the super. Meaning, that which is ours and from which it is formed by extension
Meaning, that which is ours and from which it is formed by extension When it was passed, this name went here.
When it was passed, this name went here. This would have made the initial is okay more
This would have made the initial is okay more The great thing is that we have metal bottles
The great thing is that we have metal bottles There must be a maker, we have it, what is his name?
There must be a maker, we have it, what is his name? Milton if you name it in Chilton
Milton if you name it in Chilton If you keep it then the name will become Chilton, so at this time
If you keep it then the name will become Chilton, so at this time Our b1 is a metal maker and its
Our b1 is a metal maker and its The name is Chilton okay get value can we
The name is Chilton okay get value can we You can access this dot name lets
You can access this dot name lets try this okay let's try this so we
try this okay let's try this so we Here it will say Power Data Value and
Here it will say Power Data Value and will print to the console
will print to the console Sir, what has been printed, Chilton Print?
Sir, what has been printed, Chilton Print? Done Joke Its Name Is We Can Access It
Done Joke Its Name Is We Can Access It Na the question is the big question is can we
Na the question is the big question is can we Access this can we access this looks like
Access this can we access this looks like Yes, I am doing it. Hey Dada, look here, there is an error.
Yes, I am doing it. Hey Dada, look here, there is an error. If he allows it then the answer will come.
If he allows it then the answer will come. I am explaining this now because this
I am explaining this now because this If it is private then it is used only in this class.
If it is private then it is used only in this class. If it is possible then you have accepted the name
If it is possible then you have accepted the name It was sent as well but because it is private
It was sent as well but because it is private This class only has a property called name.
This class only has a property called name. Access may be Are You Getting My Point
Access may be Are You Getting My Point So whatever will be built here will be after extension.
So whatever will be built here will be after extension. It cannot be used further if these cases are less
It cannot be used further if these cases are less I understand, please make it public.
I understand, please make it public. made
made Let's have a variable named private halua
Let's have a variable named private halua Make it okay or let's just do it now.
Make it okay or let's just do it now. public kar do public halwa public halwa and
public kar do public halwa public halwa and Its type is string and its value is
Its type is string and its value is Halwa ok wait wait public halwa type
Halwa ok wait wait public halwa type is string and value is halwa ok and
is string and value is halwa ok and Because we extended to bottle maker
Because we extended to bottle maker So whatever is there in the bottle maker is all ours.
So whatever is there in the bottle maker is all ours. There will also be a metal bottle maker meaning public
There will also be a metal bottle maker meaning public Halwa will also be in metal bottle maker and name
Halwa will also be in metal bottle maker and name also we can access y constructor
also we can access y constructor Right so when we found the bottle metal bottle maker
Right so when we found the bottle metal bottle maker If we drove, we sent Chilton.
If we drove, we sent Chilton. Our constructor's name came in Saab and
Our constructor's name came in Saab and We have passed the name and set the name here.
We have passed the name and set the name here. It must have been perfect, now if you understand the Hindi calculation
It must have been perfect, now if you understand the Hindi calculation We also have a variable called Halwa.
We also have a variable called Halwa. It should be right, so let's see the name.
It should be right, so let's see the name. Together we watch this dot
Together we watch this dot Halwa is awesome let's come back here
Halwa is awesome let's come back here What does it mean that you get both Chilton and Halwa?
What does it mean that you get both Chilton and Halwa? We are able to access the public pudding
We are able to access the public pudding Right here in the extended class but
Right here in the extended class but Let me tell you an interesting fact, if you
Let me tell you an interesting fact, if you You will make the public private, now listen.
You will make the public private, now listen. You are private only in this class
You are private only in this class Accessible only in this class you
Accessible only in this class you If extended then you can use its private one
If extended then you can use its private one You can't use Namda here so this
You can't use Namda here so this It is only available here, so this happens
It is only available here, so this happens The difference between our private and public is all right.
The difference between our private and public is all right. I did not understand very well, there was no problem
I did not understand very well, there was no problem No, you will have to trust me, sir.
No, you will have to trust me, sir. Guarantee you understand when we project
Guarantee you understand when we project You must have trust on me, come on
You must have trust on me, come on You gotta have trust on me, okay, he said, sir.
You gotta have trust on me, okay, he said, sir. You are already protected, you are protected now.
You are already protected, you are protected now. Sir, you are gone, what are you talking about?
Sir, you are gone, what are you talking about? Protected remains protected will read
Protected remains protected will read No brother, let's read protected.
No brother, let's read protected. [music]
[music] Let's just do one thing
Let's just do one thing Even the protected ones are understanding what it is
Even the protected ones are understanding what it is If I am going then let's do one thing from back
If I am going then let's do one thing from back The bottle maker class will be completed, okay, it has been completed.
The bottle maker class will be completed, okay, it has been completed. Let me explain inheritance further which is about extension.
Let me explain inheritance further which is about extension. I should explain that too, friend, it's not a problem now.
I should explain that too, friend, it's not a problem now. What is inheritance without understanding it?
What is inheritance without understanding it? Private and protected very well
Private and protected very well Can't understand okay and protected
Can't understand okay and protected You can't even understand this, you can understand it and
You can't even understand this, you can understand it and Inheritance is a later topic, now this is the problem
Inheritance is a later topic, now this is the problem It happens in these types of topics but mine
It happens in these types of topics but mine I promise you will read the whole thing.
I promise you will read the whole thing. You will understand when you reach the end.
You will understand when you reach the end. You have come to study, right friend, why not study comfortably?
You have come to study, right friend, why not study comfortably? What is the problem of early and late completion?
What is the problem of early and late completion? Read the video and you will understand everything, I guarantee it will be fine.
Read the video and you will understand everything, I guarantee it will be fine. Okay, let's go, so now we have to understand whatever we want.
Okay, let's go, so now we have to understand whatever we want. Protected one line explain in Hindi
Protected one line explain in Hindi we have a variable let se public
we have a variable let se public I have kept the value of name and name from
I have kept the value of name and name from Harsh, it's okay, there's no problem, one more
Harsh, it's okay, there's no problem, one more Class made metal bottle bottle maker it became
Class made metal bottle bottle maker it became Class is fine, it extends the bottle.
Class is fine, it extends the bottle. Maker class is ok so we can say
Maker class is ok so we can say Yes brother, it has its own public variable.
Yes brother, it has its own public variable. Edge whose value is 12 cannot be an edge
Edge whose value is 12 cannot be an edge Because it is a metal bottle maker, keep the material
Because it is a metal bottle maker, keep the material We give and its value is its value
We give and its value is its value Hey metal, it's okay, interesting, going forward.
Hey metal, it's okay, interesting, going forward. I made a new metal bottle maker and
I made a new metal bottle maker and I saved its value in b1.
I saved its value in b1. If so, keep this case for a minute.
If so, keep this case for a minute. We can clearly see the metal bottle
We can clearly see the metal bottle But we have him, his name is Harsh.
But we have him, his name is Harsh. Its material is metal, don't name it Harsh.
Its material is metal, don't name it Harsh. Milton can keep the name while working
Milton can keep the name while working Otherwise it will not match, okay so the name
Otherwise it will not match, okay so the name Which is the metal bottle maker?
Which is the metal bottle maker? There is an instance, what is its name, Milton?
There is an instance, what is its name, Milton? and what is the material it is metal okay okay
and what is the material it is metal okay okay Now let me show you an interesting point.
Now let me show you an interesting point. Well by the way because I am extending
Well by the way because I am extending The bottle maker has what the bottle maker has
The bottle maker has what the bottle maker has it's near it too okay but if you
it's near it too okay but if you will you make it private
will you make it private Now what did you do to him?
Now what did you do to him? If you make it private, now you will see it.
If you make it private, now you will see it. You don't have a name here, you might say.
You don't have a name here, you might say. No, no, we have the name, look.
No, no, we have the name, look. We have a name, we have a name
We have a name, we have a name The problem is not the trouble but the big thing
The problem is not the trouble but the big thing is let's say change name
is let's say change name change you to change name if when
change you to change name if when will go this dot name is equal to some other name
will go this dot name is equal to some other name So you will see a clear error there.
So you will see a clear error there. You will obviously see type script.
You will obviously see type script. If you don't stop me, my name will be changed but you
If you don't stop me, my name will be changed but you You will see an error coming b1 dot change name
You will see an error coming b1 dot change name If you run it, you will see that the name of b1 is same.
If you run it, you will see that the name of b1 is same. Another name has been written but type script
Another name has been written but type script It is repeatedly giving you an error.
It is repeatedly giving you an error. Property name is private property name
Property name is private property name what is private ok and only
what is private ok and only Accessible with in class bottle maker so you
Accessible with in class bottle maker so you You can only access it through the bottle maker.
You can only access it through the bottle maker. Obviously you will run the entire code in the class.
Obviously you will run the entire code in the class. If TSC of type script is running then that
If TSC of type script is running then that So it will compile the code but
So it will compile the code but This is clearly telling you that type scoop
This is clearly telling you that type scoop Dude, you're messing up, this isn't right.
Dude, you're messing up, this isn't right. This is wrong, it's okay if you make it public.
This is wrong, it's okay if you make it public. If you had given it, it would have run smoothly, no problem.
If you had given it, it would have run smoothly, no problem. If we don't know what to do, we can change the variable
If we don't know what to do, we can change the variable We were also able to give it a private feature.
We were also able to give it a private feature. made private
made private Make it private so that it can be used in this class
Make it private so that it can be used in this class But if any class uses it
But if any class uses it If we extend it, we can use it there too.
If we extend it, we can use it there too. And only that is protected
And only that is protected What is the difference between protected and private?
What is the difference between protected and private? Listen, private should be used only in that class.
Listen, private should be used only in that class. Maybe if you make it private then this
Maybe if you make it private then this Only variable named name in the class itself
Only variable named name in the class itself It can be used, it is okay, protected as
It can be used, it is okay, protected as Can only be used in class. Plus
Can only be used in class. Plus If any other class extends it then
If any other class extends it then It can be used there too, so basically you
It can be used there too, so basically you You can change the name from here also, if there is any error.
You can change the name from here also, if there is any error. You won't get pregnant, but if you go out
You won't get pregnant, but if you go out You tried to change it from here
You tried to change it from here If you try to change from then you will definitely get an error
If you try to change from then you will definitely get an error Some more names of bottles will come in something strange
Some more names of bottles will come in something strange I am writing it so that you can see the error.
I am writing it so that you can see the error. It is coming that the property name is
It is coming that the property name is Protected and only accessible with in
Protected and only accessible with in Clay Bottle Maker and its Sub Classes
Clay Bottle Maker and its Sub Classes You can use it in bottle maker.
You can use it in bottle maker. Protected and all classes that
Protected and all classes that Extending classes are being created
Extending classes are being created You can use them right so that is the
You can use them right so that is the Idea Behind Public Private
Idea Behind Public Private Protected public means you are your
Protected public means you are your Use it in class, use it outside
Use it in class, use it outside Use in extended classes
Use in extended classes After instants, you use any
After instants, you use any No problem, use it anywhere, change it.
No problem, use it anywhere, change it. Use it, no problem, private
Use it, no problem, private any method or any you can say
any method or any you can say You have made the variable private.
You have made the variable private. So now it can only be used where you
So now it can only be used where you protected inside that particular class
protected inside that particular class Protected means that basically your
Protected means that basically your can be used in class and if you
can be used in class and if you extended another class that
extended another class that From class, you can use it there as well.
From class, you can use it there as well. So there should be protected use at these two places.
So there should be protected use at these two places. Could be protected, usually we don't use
Could be protected, usually we don't use Usually it is fine but I would not say that use
Usually it is fine but I would not say that use It will not happen, it depends on the use cases
It will not happen, it depends on the use cases what are you doing what are you making
what are you doing what are you making What do you need there, your right?
What do you need there, your right? He plays the entire game on that basis and
He plays the entire game on that basis and Rest of the knowledge with you ahead
Rest of the knowledge with you ahead Reading read-only properties will increase quickly
Reading read-only properties will increase quickly But next thing, listen to a wise word.
But next thing, listen to a wise word. Meaning a life for small things
Meaning a life for small things How desperate are boys for small things
How desperate are boys for small things The things we call her are small
The things we call her are small Because nowadays it is not big, it is small
Because nowadays it is not big, it is small So what if it is small then understand what he is saying
So what if it is small then understand what he is saying What is the poet saying, this has happened for the first time today
What is the poet saying, this has happened for the first time today The first time I've seen you smile like this
The first time I've seen you smile like this So I wonder why I have come into this world.
So I wonder why I have come into this world. Chuya is making I can guarantee you this
Chuya is making I can guarantee you this The guy is just making a fool and he has so many
The guy is just making a fool and he has so many I've lived my life for years and it feels real
I've lived my life for years and it feels real If that means it's making you stupid
If that means it's making you stupid Trust me, I'm being fooled.
Trust me, I'm being fooled. It already knows why
It already knows why It has come into the world, why hasn't it come?
It has come into the world, why hasn't it come? Even today I don't know, by the way it's just
Even today I don't know, by the way it's just It's making you fool so don't get in too
It's making you fool so don't get in too that's right it's time it's time we move to the
that's right it's time it's time we move to the Next Topic Lets
Next Topic Lets [music]
[music] Go, this is a completely alua topic, just one minute.
Go, this is a completely alua topic, just one minute. The topic is you are walking with me, let's do something
The topic is you are walking with me, let's do something No, basically I have made the class.
No, basically I have made the class. Make any class with let's, friend, what's
Make any class with let's, friend, what's Lets are making a difference, for now we
Lets are making a difference, for now we created a user class okay one
created a user class okay one The constructor function will be 100% okay
The constructor function will be 100% okay And we are saying that every user will have a name.
And we are saying that every user will have a name. Hi friend, so we have initialism here
Hi friend, so we have initialism here I have named it okay, now listen like this
I have named it okay, now listen like this It happens and many times it happens that you are one of
It happens and many times it happens that you are one of You want to get the value, then you change it.
You want to get the value, then you change it. You don't want to do it for the entire class.
You don't want to do it for the entire class. 100% sure it will not change like the value
100% sure it will not change like the value Let's take the name in this case now you have here
Let's take the name in this case now you have here Pay name etc. everything must have been set up in this set
Pay name etc. everything must have been set up in this set Constructed
Constructed You created a new method by mistake.
You created a new method by mistake. I changed the name but I couldn't remember and made it ok.
I changed the name but I couldn't remember and made it ok. and you have entered this dot name here.
and you have entered this dot name here. Set the value to let's say hello like this
Set the value to let's say hello like this You have set it, okay, now you have gone to the future.
You have set it, okay, now you have gone to the future. New user, new, okay to go
New user, new, okay to go New user ok and then what is your name send
New user ok and then what is your name send Diya Harsh ok this user became and I
Diya Harsh ok this user became and I I like my name so much I'm messing around, man
I like my name so much I'm messing around, man I will not let this happen, so let's do one thing.
I will not let this happen, so let's do one thing. First of all, open the browser, then here you
First of all, open the browser, then here you What is the name of the person who came, Harsh sir, very
What is the name of the person who came, Harsh sir, very It is Hindi sir, you went ahead and said it by mistake
It is Hindi sir, you went ahead and said it by mistake I changed my name and I could not remember your name.
I changed my name and I could not remember your name. I have changed it sir, now you check u1.
I have changed it sir, now you check u1. what is the name what has happened lee and what
what is the name what has happened lee and what Harsh has gone away, so you want this name.
Harsh has gone away, so you want this name. property whose value you first recorded
property whose value you first recorded Harsh, what did I set you want?
Harsh, what did I set you want? Sisterfucker, no matter what happens, I won't change this name.
Sisterfucker, no matter what happens, I won't change this name. Whatever your value variable is,
Whatever your value variable is, Stick a read only message next to it.
Stick a read only message next to it. We have to take care of the public first and foremost.
We have to take care of the public first and foremost. Modify okay take care of it means
Modify okay take care of it means This means you can't do it if you read it first.
This means you can't do it if you read it first. You wrote only and then you are writing this for public.
You wrote only and then you are writing this for public. It is not possible, so what should you do?
It is not possible, so what should you do? You will have to modify the access first.
You will have to modify the access first. Is it public or private or protected?
Is it public or private or protected? And then it will come whether it is read only or not.
And then it will come whether it is read only or not. Now if you wrote read only then in Hindi calculation
Now if you wrote read only then in Hindi calculation There you will see Cannot Assign To
There you will see Cannot Assign To Name because it is a read only property now
Name because it is a read only property now You cannot change the value of the name, but
You cannot change the value of the name, but Now the same thought will arise in your mind that
Now the same thought will arise in your mind that Sir, if I change my name then I will do it.
Sir, if I change my name then I will do it. So the name will definitely change, right?
So the name will definitely change, right? Exactly type script only here
Exactly type script only here It will tell you that there is something wrong with the code.
It will tell you that there is something wrong with the code. No problem, the code is great
No problem, the code is great If it works then the type script will bind you.
If it works then the type script will bind you. She will keep it with herself only to see if you are doing wrong.
She will keep it with herself only to see if you are doing wrong. Yes, you are doing wrong, you are doing wrong.
Yes, you are doing wrong, you are doing wrong. will let you go okay sort of it is like that
will let you go okay sort of it is like that There is a complete account, first I will tell you whether he is like me or not.
There is a complete account, first I will tell you whether he is like me or not. A friend is not our friend, we are not his friend
A friend is not our friend, we are not his friend Brother says it's right
Brother says it's right I am not a prisoner, please look around brother.
I am not a prisoner, please look around brother. They say that the girls must be talking
They say that the girls must be talking Friend, after looking at him a little you will understand that he is not the right boy.
Friend, after looking at him a little you will understand that he is not the right boy. So what does your friend say, I say
So what does your friend say, I say If yes then it is just the same calculation type
If yes then it is just the same calculation type ok with scripts too
I know when your mood will turn bad. When I tell you that we're going to be in the next two
When I tell you that we're going to be in the next two I have already read the topics but I still have to read them.
I have already read the topics but I still have to read them. You will read it and that is because the topic is written
You will read it and that is because the topic is written If it is so, then I will have to teach it.
If it is so, then I will have to teach it. Let me show you, we've read this.
Let me show you, we've read this. Look, look, look, so here the class user
Look, look, look, so here the class user built became constructor built became
built became constructor built became Okay, I've become a constructor here.
Okay, I've become a constructor here. We have public name
We have public name Wrote and said the string will remain and
Wrote and said the string will remain and The public spoke and said that the number will remain and
The public spoke and said that the number will remain and I said public gender, now some people gender
I said public gender, now some people gender Some people are interested in telling
Some people are interested in telling If it doesn't happen, okay, then listen, it's ready.
If it doesn't happen, okay, then listen, it's ready. We created a new user on Y, which was our first
We created a new user on Y, which was our first The user name is his brother's Harsh, okay.
The user name is his brother's Harsh, okay. His name is Harsh, okay, his age is brother's.
His name is Harsh, okay, his age is brother's. It is 25 and after that the gender of Bhaiya is male
It is 25 and after that the gender of Bhaiya is male ok great I'm Shar I checked
ok great I'm Shar I checked It was yesterday, wasn't it? I checked last night.
It was yesterday, wasn't it? I checked last night. absolutely and this is my youth so this is my one
absolutely and this is my youth so this is my one The variable is allright
The variable is allright So this is the first user, now in this way we
So this is the first user, now in this way we And we can create users, okay, this is our value.
And we can create users, okay, this is our value. Let's take it, this is our lag batak, lag batak lag
Let's take it, this is our lag batak, lag batak lag Butak is ok, this is Butak, so there is a user.
Butak is ok, this is Butak, so there is a user. Butak, these are its 22 small ones.
Butak, these are its 22 small ones. Usually, the little ones turn 10 years old quickly.
Usually, the little ones turn 10 years old quickly. If you get fooled then this is the end of the world
If you get fooled then this is the end of the world Please tell me the gender of this Lak Batak.
Please tell me the gender of this Lak Batak. I'm not interested if it's not
I'm not interested if it's not If I tell you, an error will appear because we
If I tell you, an error will appear because we I asked for it in the constructor and didn't tell me this.
I asked for it in the constructor and didn't tell me this. If I am not telling you then there is an error, so we are here
If I am not telling you then there is an error, so we are here What can we do after gender and calculus?
What can we do after gender and calculus? Questions after first name and before colon
Questions after first name and before colon Mark can put what happens with this
Mark can put what happens with this Due to this, this field of gender should be optional.
Due to this, this field of gender should be optional. It means that if you want, two
It means that if you want, two If you want, don't give it, you will give good value.
If you want, don't give it, you will give good value. It's okay if you don't talk to me
It's okay if you don't talk to me So now let's do our testing.
So now let's do our testing. Quickly, it will take a minute, open the browser
Quickly, it will take a minute, open the browser In doing u1 u2 u1 we are done sir Harsh
In doing u1 u2 u1 we are done sir Harsh Age 25 Gender Male Name Agli Banda Hai Lag Batak
Age 25 Gender Male Name Agli Banda Hai Lag Batak Age 18 and gender is undefined sir, okay
Age 18 and gender is undefined sir, okay If so, this is how it is completely optional.
If so, this is how it is completely optional. Optional Properties
Optional Properties we are going to read the first and second game of
we are going to read the first and second game of Parameter properties Parameter properties
Parameter properties Parameter properties What happens is we're already making the D
What happens is we're already making the D Listen brother, inside the constructor a jab class
Listen brother, inside the constructor a jab class If you create two ways to create a variable
If you create two ways to create a variable The first method is what I already used.
The first method is what I already used. I told you earlier also, write your public name, okay?
I told you earlier also, write your public name, okay? Write down public edge and these become two variables.
Write down public edge and these become two variables. And define them here, I understand.
And define them here, I understand. You will support me if you
You will support me if you I have already created a public name, so here you are.
I have already created a public name, so here you are. You will not have to write your public name again.
You will not have to write your public name again. You just have to write the name and specify the type.
You just have to write the name and specify the type. You said it is string and you said edge
You said it is string and you said edge I have to write and tell you the time and type.
I have to write and tell you the time and type. The number you told me is correct.
The number you told me is correct. Okay, now you have to go inside and
Initial this dat name name and this da so this One way is to create your variable
One way is to create your variable of and them
Initialism Private Protected Whatever Have to put it, put it
Have to put it, put it And we call these parameter properties.
And we call these parameter properties. ok what does parameter mean
ok what does parameter mean Inside the properties constructor itself you can
Inside the properties constructor itself you can Inside the parameter itself it is initialized and
Inside the parameter itself it is initialized and You can declare it this way when you
You can declare it this way when you Properties that make properties meaning
Properties that make properties meaning Let's say the variable is bananas right now, so that's our
Let's say the variable is bananas right now, so that's our called parameter properties okay this
called parameter properties okay this Our concept is parameter properties.
Our concept is parameter properties. means constructor's constructor
means constructor's constructor Created the variable in the parameters itself and
Created the variable in the parameters itself and It is called giving its value right there
It is called giving its value right there parameter property okay so this is us
parameter property okay so this is us We have already been doing this for a long time.
We have already been doing this for a long time. If we have been doing it then we will do what we already do.
If we have been doing it then we will do what we already do. It was called Parameter Properties.
It was called Parameter Properties. that takes us to the next thing which is
that takes us to the next thing which is Getters and setters are a halwa topic.
Getters and setters are a halwa topic. If you walk, it will be done instantly. You are walking with me.
If you walk, it will be done instantly. You are walking with me. Yes, and we're going to the Gateway Sets.
Yes, and we're going to the Gateway Sets. Let's
Let's [music]
[music] So now what I am going to teach you is
So now what I am going to teach you is If you don't enjoy it, we'll leave from here, brother.
If you don't enjoy it, we'll leave from here, brother. Sir, please check your money back, okay, first thing.
Sir, please check your money back, okay, first thing. There's no need for these gates and sets.
There's no need for these gates and sets. There is no need to read number one.
There is no need to read number one. I am not saying that they are not needed
I am not saying that they are not needed I am saying this but this can happen to anyone someday.
I am saying this but this can happen to anyone someday. go to a company or look at someone's code sometime or
go to a company or look at someone's code sometime or Look at a colleague's code and you start blabbering.
Look at a colleague's code and you start blabbering. That friend, how did this happen to the sisterhood method
That friend, how did this happen to the sisterhood method How did it work like property now?
How did it work like property now? I will explain, I will explain, just so you get
I will explain, I will explain, just so you get I am teaching Sets that tomorrow I will meet someone
I am teaching Sets that tomorrow I will meet someone If we have a conversation, you should not feel weak, okay?
If we have a conversation, you should not feel weak, okay? That's why we are learning this, let's begin
That's why we are learning this, let's begin Let's do the first method here. First method
Let's do the first method here. First method Let's understand in Hindi what is getter and setter
Let's understand in Hindi what is getter and setter First understand this first I am without getter setter
First understand this first I am without getter setter I will show you the meaning of getter
I will show you the meaning of getter One such method from within a class
One such method from within a class The one who gives you value, okay I
The one who gives you value, okay I Explain and setter mean one such
Explain and setter mean one such Method that takes a value from you and is inside the class
Method that takes a value from you and is inside the class Let me explain.
Let me explain. Listen, we have by default run new user
Listen, we have by default run new user In that, the value given is Harsh first and 25 second.
In that, the value given is Harsh first and 25 second. Let it be great, okay, and if I
Let it be great, okay, and if I If I show you how to drive it here, the name is Harsh in U1.
If I show you how to drive it here, the name is Harsh in U1. and age is 25 ok set
and age is 25 ok set Now I want to make a getter here tomorrow.
Now I want to make a getter here tomorrow. I want to have a value of something like this
I want to have a value of something like this I wish I could write u1 dot u1
I wish I could write u1 dot u1 D get name get name so if I can run it like this
D get name get name so if I can run it like this I need a method to make it work like this
I need a method to make it work like this If so, I will build a gate here.
If so, I will build a gate here. Name GetName returns this.name
Name GetName returns this.name So, I'm going to run this here, u1 d gate.
So, I'm going to run this here, u1 d gate. Nam and the moment I run I Nam
Nam and the moment I run I Nam It will be received which is a joy, you can see
It will be received which is a joy, you can see Ho yav name kya hai Harsh why because gate
Ho yav name kya hai Harsh why because gate When the name is running, return it, return it
When the name is running, return it, return it what is this dot name this dot name mean
what is this dot name this dot name mean This name is simple as that, so that's about it.
This name is simple as that, so that's about it. Great and I can create a setter setName
Great and I can create a setter setName which will accept a value like string
which will accept a value like string and what we're doing here
and what we're doing here Our name is this dot and its value is this dot.
Our name is this dot and its value is this dot. What value should be set for the name, whatever value
What value should be set for the name, whatever value If we get it, we will do it in the future.
If we get it, we will do it in the future. You can write u1 dot set name and set name
You can write u1 dot set name and set name I sent it to Harsh okay and now when
I sent it to Harsh okay and now when You will name the gate
You will name the gate Oh child, I was already in Harsh's house, sorry Harshita.
Oh child, I was already in Harsh's house, sorry Harshita. okay so what do we set the name of u1
okay so what do we set the name of u1 Harshita and now when I get my name
Harshita and now when I get my name If I do it then I will be getting Harshita you
If I do it then I will be getting Harshita you If you see, Yava's name has changed to Harshita.
If you see, Yava's name has changed to Harshita. It's done right, so get your name this way.
It's done right, so get your name this way. Create and set names in this way
Create and set names in this way We call getters and setters by
We call getters and setters by default but in type script it is like this
default but in type script it is like this What the type script says
What the type script says Type script says we did it differently
Type script says we did it differently We have asked you to make us different
We have asked you to make us different method has given two keywords okay you
method has given two keywords okay you Use them, they are much better
Use them, they are much better How is it better to do what you have to do now?
How is it better to do what you have to do now? This is the method we have to use, Gate
This is the method we have to use, Gate I have to call such a method name right
I have to call such a method name right It would be better if you wrote it here.
It would be better if you wrote it here. Pate Yava
Pate Yava You could write dot username or something like that
You could write dot username or something like that If the right user name could write something like this
If the right user name could write something like this This would have been a better way, right?
This would have been a better way, right? Can I tell you an interesting fact?
Can I tell you an interesting fact? I will tell you, please realise which property it is.
I will tell you, please realise which property it is. which was later known as Jacques
which was later known as Jacques If we want to have a getter and setter, what do we do?
If we want to have a getter and setter, what do we do? remove this first what we do is I
remove this first what we do is I I do this, especially here I
I do this, especially here I I put an underscore in the property name.
I put an underscore in the property name. This tells me that this man
This tells me that this man property na there is something special about it
property na there is something special about it This is going to be used in the getter and setter.
This is going to be used in the getter and setter. This is my method, okay, now how can I benefit from it?
This is my method, okay, now how can I benefit from it? Look what happens, get name get name get name
Look what happens, get name get name get name We need a keyword called get.
We need a keyword called get. need space after that gate gate ok gate
need space after that gate gate ok gate By applying this method, whatever returns
By applying this method, whatever returns We can use that property
We can use that property I will explain, I will explain, we returned this
I will explain, I will explain, we returned this dot under name do under name okay now listen
dot under name do under name okay now listen listen listen listen oh oh you created a new user
listen listen listen oh oh you created a new user Created a new user Created a user so whatever
Created a new user Created a user so whatever Here is the page, everything will be in the queue, check it.
Here is the page, everything will be in the queue, check it. Do right judge is name is and name is one
Do right judge is name is and name is one The method is right right right, I know the special thing
The method is right right right, I know the special thing what is it we can see clearly name one
what is it we can see clearly name one There is a method but later we will know this name.
There is a method but later we will know this name. If you write it, it will not act like method but
If you write it, it will not act like method but I will act like a property u1 dot name
I will act like a property u1 dot name You don't have to call us by writing to us.
You don't have to call us by writing to us. You will get the answer directly Harsh can you see
You will get the answer directly Harsh can you see That can you see that so this is getter anyway
That can you see that so this is getter anyway The setter set name gives you this value.
The setter set name gives you this value. two okay set set not stringing
two okay set set not stringing This is called the value, so here we have
This is called the value, so here we have Accept the value and enter this end name.
Accept the value and enter this end name. I set this value, so now I am doing this
I set this value, so now I am doing this I can write u1 dot name equals I can write my
I can write u1 dot name equals I can write my I can set the value this way
I can set the value this way No method calls needed
No method calls needed And now if you check the value of u1
And now if you check the value of u1 So its value has been set now there
So its value has been set now there R Two Big Questions The first question you
R Two Big Questions The first question you Why is there an underscore in this? Nice
Why is there an underscore in this? Nice If you don't put the question underscore
If you don't put the question underscore Let's understand from the beginning if underscore
Let's understand from the beginning if underscore No
No I applied this, I did not apply this, okay, so now you
I applied this, I did not apply this, okay, so now you You can't write now you can't keep the get name
You can't write now you can't keep the get name You can name it something else now.
You can name it something else now. If needed then we kept the username
If needed then we kept the username Clea, okay, let's see what I
Clea, okay, let's see what I return this dot name so it will say
return this dot name so it will say duplicate
duplicate Identification
Identification that the thing is there now you will think why
that the thing is there now you will think why This works, I will make it private.
This works, I will make it private. I'll give it to you, it's okay now, it's okay now, yes
I'll give it to you, it's okay now, it's okay now, yes C. Duplicate
You will keep the identification name, you will say okay Let's work, let's keep the username, then
Let's work, let's keep the username, then Go ahead and type u1 dot username
Go ahead and type u1 dot username will have to
will have to So that dozen matches my vibe, so what do I do?
So that dozen matches my vibe, so what do I do? I always change its name.
I always change its name. I am now because it doesn't have a name.
I am now because it doesn't have a name. So I can name it anything.
So I can name it anything. I can name it right and this here.
I can name it right and this here. dot ar name kare kare hum log simple at
dot ar name kare kare hum log simple at Because its name is underscore name now
Because its name is underscore name now Go to the future because there is a gate ahead
Go to the future because there is a gate ahead What is your name written, I can go anytime and tell you1
What is your name written, I can go anytime and tell you1 dot name if I can do another getter
dot name if I can do another getter okay I'll make another getter get edge so
okay I'll make another getter get edge so I can't put Edge because it's called Edge
I can't put Edge because it's called Edge So I'll name it underscore edge.
So I'll name it underscore edge. So now I can name this A. So here
So now I can name this A. So here But I will say return this and then go ahead
But I will say return this and then go ahead I can always say u1 A u1 dot jo
I can always say u1 A u1 dot jo Do you also want to access it from within?
Do you also want to access it from within? to access a so u1 a simple edge that
to access a so u1 a simple edge that Right, so this is our gates in sets, so u1 a
Right, so this is our gates in sets, so u1 a There we go and u1
There we go and u1 Done gate so getters works inside
Done gate so getters works inside The value of any description given in the class
The value of any description given in the class Taking it out and giving it back and returning it in total
Taking it out and giving it back and returning it in total And the job of the set is to set it, so let it
And the job of the set is to set it, so let it Me show you set so set name keep name same get
Me show you set so set name keep name same get name set name and here pay value value we
name set name and here pay value value we Will accept string string type
Will accept string string type The value will always be okay and here we are
The value will always be okay and here we are But what should we do, our name and value is
But what should we do, our name and value is What should I do to change the value of the name property?
What should I do to change the value of the name property? Whatever value you send will happen.
Whatever value you send will happen. Go to the future when I'm u1 dot name
Go to the future when I'm u1 dot name because will act as a setter then I
because will act as a setter then I Write equals before its name and do anything
Write equals before its name and do anything I can write
I can write Harshita, okay now your question might be
Harshita, okay now your question might be If I name it Set My Name
If I name it Set My Name If I had kept it then what would I have to use then?
If I had kept it then what would I have to use then? I had to write yav dot set my name
I had to write yav dot set my name Equals
Equals Harshita
Harshita Sheeta if you check it's Harshita right so whatever
Sheeta if you check it's Harshita right so whatever You will write the name in front of the set with the same name you
You will write the name in front of the set with the same name you You will set the value to whatever the name next to the gate is.
You will set the value to whatever the name next to the gate is. You will set its name with the same name that you write.
You will set its name with the same name that you write. If you keep it as uncle, you will have to go ahead and write it.
If you keep it as uncle, you will have to go ahead and write it. u1 d uncle ts it will go yav dat
u1 d uncle ts it will go yav dat Uncle, now you will put value on this, Harley uncle.
Uncle, now you will put value on this, Harley uncle. So getter is or like t okay so this is
So getter is or like t okay so this is How This Complete Thing Works Get
How This Complete Thing Works Get And sets its time start with static
And sets its time start with static Members are fast moving and static members
Members are fast moving and static members The next topic is a little confusing.
The next topic is a little confusing. Static members and methods in an class
Static members and methods in an class It's a little confusing, I may not understand it yet.
It's a little confusing, I may not understand it yet. So it is completely fine, further in career
So it is completely fine, further in career Move slowly, you will understand when you work.
Move slowly, you will understand when you work. So don't worry about it, it's too soon
So don't worry about it, it's too soon Start Let's Go
Start Let's Go [music]
[music] Now let me quickly give you a strong example.
Now let me quickly give you a strong example. I'm going to give that static one shot
I'm going to give that static one shot It will become clear, I swear, let's go to everyone.
It will become clear, I swear, let's go to everyone. First let us understand here on a console
First let us understand here on a console Let me give you an example, method pa, okay
Let me give you an example, method pa, okay Maths has a capital M, which means Clear Math
Maths has a capital M, which means Clear Math There is a class and on dot pay I get a
There is a class and on dot pay I get a am I getting the value anywhere did I do this
am I getting the value anywhere did I do this Did I ever do the first class anywhere?
Did I ever do the first class anywhere? Did I do any of this?
Did I do any of this? Instance not created not created
Instance not created not created Directly I accessed the method
Directly I accessed the method okay not only that math durm okay
okay not only that math durm okay Accessing Math Drum Directly and
Accessing Math Drum Directly and So the question is that when math is a
So the question is that when math is a If it is a class then without using new
If it is a class then without using new You used any math method or
You used any math method or How did you use the property?
How did you use the property? I'm teaching you, we made one, let's
I'm teaching you, we made one, let's from class hero okay class hero by name
from class hero okay class hero by name Now you must know the name of the hero in this.
Now you must know the name of the hero in this. You can initiate a hero without making him a hero.
You can initiate a hero without making him a hero. Is that you can know its name or
Is that you can know its name or did you create a library Sherry Jess okay
did you create a library Sherry Jess okay You can know Sherry Jess's version without
You can know Sherry Jess's version without Sherry JS ko inila is kye aap her version
Sherry JS ko inila is kye aap her version You can know what I mean anytime you can see Sherry dot
You can know what I mean anytime you can see Sherry dot You can type in the version and it will tell you
You can type in the version and it will tell you what is his version okay so to do this
what is his version okay so to do this What you have to do is first go to the version
What you have to do is first go to the version You have to calculate the number and your version is 1.0 now.
You have to calculate the number and your version is 1.0 now. If you just wrote this directly, which we
If you just wrote this directly, which we write console p
write console p See Sherry Dot
See Sherry Dot verge so it's undefined why because
verge so it's undefined why because What haven't you made yet?
What haven't you made yet? I didn't make sherry, so no, so no.
I didn't make sherry, so no, so no. right but what if you put it in front of it
right but what if you put it in front of it static so whether you have done new sheri or any
static so whether you have done new sheri or any Whether the instance is created or not is static
Whether the instance is created or not is static You can change the values without any new code.
You can change the values without any new code. Create instances that you can access directly
Create instances that you can access directly Yes, then you can write Sherry.
Yes, then you can write Sherry. dot version and you can access its value
dot version and you can access its value You can, for example, have another one here.
You can, for example, have another one here. Method created to get random numbers
Method created to get random numbers There is some method like this, okay, so you said that
There is some method like this, okay, so you said that Okay, this will return a math dot rum.
Okay, this will return a math dot rum. So now you want that brother, Sherry should not
So now you want that brother, Sherry should not Sherry, you can never go without sherry later.
Sherry, you can never go without sherry later. Create any instance and run Get Random Number
Create any instance and run Get Random Number You can run Get Random Numbers.
You can run Get Random Numbers. Right, I would say, okay, I'll do it.
Right, I would say, okay, I'll do it. I will give you static, so now as soon as I do static
I will give you static, so now as soon as I do static So it's going to give me a random number.
So it's going to give me a random number. What happens if static is applied to any
What happens if static is applied to any If you have static
If you have static If you have installed it, now you can run the instance without it.
If you have installed it, now you can run the instance without it. You can create it directly from inside the class.
You can create it directly from inside the class. You can use what you don't have to do
You can use what you don't have to do need new new sheri okay and then
need new new sheri okay and then After that, when it comes to your HV, you can use it.
After that, when it comes to your HV, you can use it. run it's not necessary okay ave dot by
run it's not necessary okay ave dot by If you look at The Way Ave, there's nothing there.
If you look at The Way Ave, there's nothing there. Static members will not be included in your
Static members will not be included in your Right in instances if you use static
Right in instances if you use static If you remove them, now both of these will be in your heart.
If you remove them, now both of these will be in your heart. There will be available version is also available and one
There will be available version is also available and one The method Get Random Number Right is also available
The method Get Random Number Right is also available So now you go and
hv get random number will run chal gaya av dot version will play it went but it's of no
version will play it went but it's of no Use the mean version and to extract random numbers
Use the mean version and to extract random numbers For this you do not need to create its instance.
For this you do not need to create its instance. If it is not right then you can directly
If it is not right then you can directly If you can make such things static then class
If you can make such things static then class that what you want is that brother, if I don't
that what you want is that brother, if I don't Sort of even if I don't create any instances
Sort of even if I don't create any instances If they are accessible then you can make them static.
If they are accessible then you can make them static. Give and this is how you can make sure that
Give and this is how you can make sure that those properties or those methods of yours
those properties or those methods of yours Can be used outside of class without
Can be used outside of class without Create instance saab thik hai so that was
Create instance saab thik hai so that was Static members are now my eyes
Static members are now my eyes terrible pain because after the surgery I had
terrible pain because after the surgery I had It has been said clearly that you should get maximum
It has been said clearly that you should get maximum More screen light has to be done
More screen light has to be done Prohibit is fine and my eyes are getting
Prohibit is fine and my eyes are getting At this time, there is severe pain, so I want to meet you now.
At this time, there is severe pain, so I want to meet you now. After a while, how long will you
After a while, how long will you You don't have to stop, you are watching the video.
You don't have to stop, you are watching the video. Yes, I have to stop, I have to do a little bit.
Yes, I have to stop, I have to do a little bit. I will need some rest, so now I will tell you in the next
I will need some rest, so now I will tell you in the next I am meeting you in the video, come there quickly.
I am meeting you in the video, come there quickly. Pay Chalo Let's
Pay Chalo Let's [music]
[music] Go, I tried very hard to wear that T-shirt.
Go, I tried very hard to wear that T-shirt. I won't change it again but this T-shirt has changed.
I won't change it again but this T-shirt has changed. Brother, do you know why it changed because one day
Brother, do you know why it changed because one day And now I've crossed over to you
And now I've crossed over to you I've been here again for three days now.
I've been here again for three days now. I went and my classes are not ending.
I went and my classes are not ending. Are you understanding the matter, these are not the classes
Are you understanding the matter, these are not the classes These topic based classes are a work.
These topic based classes are a work. Let's finish them off today, okay?
Let's finish them off today, okay? So the last topic left is the name brother.
So the last topic left is the name brother. Remember its loving name by the way
Remember its loving name by the way It does not work on many people's laptops.
It does not work on many people's laptops. Because those people do not call him lovingly.
Because those people do not call him lovingly. I want to take its name lovingly
I want to take its name lovingly Look, and its name is abstract.
Look, and its name is abstract. classes okay now what does abstract mean
classes okay now what does abstract mean Do you know what happens if you put anything on the wall?
Do you know what happens if you put anything on the wall? Paint your wrists and write revolution and then say
Paint your wrists and write revolution and then say two what is abstract drawing so like
two what is abstract drawing so like You wrote anything on paper, anything nonsense, anything
You wrote anything on paper, anything nonsense, anything What do you say if you make it?
What do you say if you make it? Abstract drawing is beyond your understanding
Abstract drawing is beyond your understanding What does abstract mean?
What does abstract mean? What is hidden, look hidden, it is very hidden.
What is hidden, look hidden, it is very hidden. Something happens right, you have to keep things hidden.
Something happens right, you have to keep things hidden. It does, but is it all abstract?
It does, but is it all abstract? No, abstract means that sir
No, abstract means that sir You have hidden any meaning in anything.
You have hidden any meaning in anything. You understand the reason behind what has happened.
You understand the reason behind what has happened. That became abstract, okay ji said
That became abstract, okay ji said Sir, what I am teaching you today is
Sir, what I am teaching you today is The name is Abstract Classes, how will it work?
The name is Abstract Classes, how will it work? How will the topic gain momentum? It will gain momentum like this.
How will the topic gain momentum? It will gain momentum like this. speed that each time you create a class
speed that each time you create a class So your motive is that we make a
So your motive is that we make a I will create an instance and explain it to you.
I will create an instance and explain it to you. For example, we make bottle makers.
For example, we make bottle makers. So let's go ahead and make sure that
So let's go ahead and make sure that Bhaiya, we are going to write New Bottle Maker.
Bhaiya, we are going to write New Bottle Maker. Create class Sorry Create instance Remember
Create class Sorry Create instance Remember You have the right to the first static member.
You have the right to the first static member. We have seen this way many times that we
We have seen this way many times that we You can make some of your own in this way for
You can make some of your own in this way for Created a class named ExampleNumber and
Created a class named ExampleNumber and In that we already have a static number named
In that we already have a static number named If you make a class named Numbers then
If you make a class named Numbers then static made a method static let
static made a method static let from Get Random Number OK Get Random Number
from Get Random Number OK Get Random Number Made one in the name, now return it to us
Made one in the name, now return it to us I'm loving Math Drum okay so now
I'm loving Math Drum okay so now This was the first time we saw this here.
This was the first time we saw this here. In the section on static members that appeared in the previous
In the section on static members that appeared in the previous The video was Bhaiya Numbers Dot Get Random
The video was Bhaiya Numbers Dot Get Random The number can be straightened up and you
The number can be straightened up and you If you look at it, it will be surprising
If you look at it, it will be surprising is that you created the class but anywhere
is that you created the class but anywhere Any member of the class using new
Any member of the class using new The instance is not created and still you are
The instance is not created and still you are Able to use this get random number right so
Able to use this get random number right so How does that happen, that happened sir.
How does that happen, that happened sir. Right now because of static members
Right now because of static members What I'm telling you is a little bit
What I'm telling you is a little bit The topic is beyond that, what is the name of the topic?
The topic is beyond that, what is the name of the topic? Create abstract classes
Create abstract classes Which you cannot directly instance
Which you cannot directly instance you will not instantiate okay I
you will not instantiate okay I I'll give you a demo, you won't understand right now.
I'll give you a demo, you won't understand right now. I'll give you a demo, tell me one thing, friend.
I'll give you a demo, tell me one thing, friend. Brother, you said that I made the payment.
Brother, you said that I made the payment. Absolutely correct, I paid exactly
Absolutely correct, I paid exactly That's right, but you paid.
I don't know exactly how the payment will be made. I have happened to you, you may never understand
I have happened to you, you may never understand I said tree, now you think of a tree.
I said tree, now you think of a tree. Quickly think of a tree Come on the tree is the
Quickly think of a tree Come on the tree is the Concept Tree Your Abstract Concept
Concept Tree Your Abstract Concept Hai mango ka ped is the implementation of it
Hai mango ka ped is the implementation of it Banana tree is the implementation of it
Banana tree is the implementation of it Right, the banana tree
Right, the banana tree Banana grows in it, okay, you know this thing
Banana grows in it, okay, you know this thing You should know because a lot of people
You should know because a lot of people I mean, I don't know this thing, brother.
I mean, I don't know this thing, brother. Bananas also grow on banana trees, right?
Bananas also grow on banana trees, right? So this thing is careful, isn't it, the mango tree?
So this thing is careful, isn't it, the mango tree? So the mango tree became all good, you know
So the mango tree became all good, you know Friends, there will be a new variety of tree
Friends, there will be a new variety of tree Its name is the laziness tree, the laziness tree
Its name is the laziness tree, the laziness tree I've usually seen the song in a thumbnail
I've usually seen the song in a thumbnail If you ever touch me, I might lose you
If you ever touch me, I might lose you I want to sing something like this day and night, Ankur.
I want to sing something like this day and night, Ankur. what does he say next
poet will you come If my love is saying something then here are our two
If my love is saying something then here are our two Friends are sitting at a distance and are quite nice
Friends are sitting at a distance and are quite nice He is a singer but we are impressed by his singing.
He is a singer but we are impressed by his singing. Moving ahead, let's talk about the mango tree today.
Moving ahead, let's talk about the mango tree today. So we have a mango tree near us.
So we have a mango tree near us. There is a banana tree nearby.
There is a banana tree nearby. okay so if we look at the tree is just the
okay so if we look at the tree is just the concept and the abstract concept but
concept and the abstract concept but mango tree and banana tree is the
mango tree and banana tree is the Implementation of it right in the same manner as a
Implementation of it right in the same manner as a And let's talk more, I told you sir, man
And let's talk more, I told you sir, man Human being is the abstract concept
Human being is the abstract concept I and you are the implementation okay I
I and you are the implementation okay I And you are the implementation of your girlfriend
And you are the implementation of your girlfriend Your boyfriend, this is also an implementation.
Your boyfriend, this is also an implementation. Sir untill unleash that those others you can say
Sir untill unleash that those others you can say I do not belong to the category for
I do not belong to the category for Example brother, some people have girlfriends
Example brother, some people have girlfriends Boyfriend dog can be doggy right so he
Boyfriend dog can be doggy right so he Not a human being but a normal case scenario
Not a human being but a normal case scenario You and I are both human beings and our
You and I are both human beings and our Boyfriend Girlfriend Also Possibly Possibly
Boyfriend Girlfriend Also Possibly Possibly They will be humans and if they are humans then they too
They will be humans and if they are humans then they too An abstract class
An abstract class implementation is okay so anyway here
implementation is okay so anyway here So we have created a class here.
So we have created a class here. This payment class is like this
This payment class is like this It is not made with the motive that tomorrow you
It is not made with the motive that tomorrow you Go and make a new payment now in your mind.
Go and make a new payment now in your mind. The question will arise as to why this means new payment.
The question will arise as to why this means new payment. Why can't I make a new payment?
Why can't I make a new payment? So new payment should be made, wait for 2 minutes.
So new payment should be made, wait for 2 minutes. Let's go in a minute, then we will understand.
Let's go in a minute, then we will understand. First you will come with me, we have
First you will come with me, we have A constructor made with love in every payment
A constructor made with love in every payment There will be something called amount, right, I called it
There will be something called amount, right, I called it Protected it sir and its value is
Protected it sir and its value is The number is gone, okay, this is the beginning.
The number is gone, okay, this is the beginning. Okay, now the first question in your mind is, brother.
Okay, now the first question in your mind is, brother. What is the problem in getting the payment done?
What is the problem in getting the payment done? I'm telling you to wait just a minute.
I'm telling you to wait just a minute. First, let's look at one more method, its name is get.
First, let's look at one more method, its name is get. Validate Get Validate Amount Okay and this
Validate Get Validate Amount Okay and this What it does is it receives an amount.
What it does is it receives an amount. Our elder brother and that amount are obviously one
Our elder brother and that amount are obviously one If it is of number type then we will put it here
If it is of number type then we will put it here I will write it down and we will return it from here.
I will write it down and we will return it from here. True or False How What if that amount
True or False How What if that amount It is big, brother, if you are making payment from zero
It is big, brother, if you are making payment from zero The payment will be greater than zero, right?
The payment will be greater than zero, right? Validated amount a is amount validated such
Validated amount a is amount validated such If the amount is paid, it will be valid.
If the amount is paid, it will be valid. It says is the payment valid, okay?
It says is the payment valid, okay? So this is our method, now the payment here
So this is our method, now the payment here I have created a class that is complete in itself.
I have created a class that is complete in itself. No, sir, because nowhere in it is this
No, sir, because nowhere in it is this It is not mentioned how the payment will be made.
It is not mentioned how the payment will be made. Whose API will be used for which model?
Whose API will be used for which model? Which mode of payment will be used?
Which mode of payment will be used? Which bank will it be in? These details will be available anywhere.
Which bank will it be in? These details will be available anywhere. It is not there, okay, so what should we do?
It is not there, okay, so what should we do? let's call this class that
let's call this class that Class base requirement is payment from someone
Class base requirement is payment from someone Do it with a Jeep
paytm2 bank transfer do anything Amount is required in every payment model
Amount is required in every payment model Right, do whatever you want, if the payment is valid then do it.
Right, do whatever you want, if the payment is valid then do it. If so, you can say that the payment
If so, you can say that the payment The class that is the base class it contains
The class that is the base class it contains Everything You Need Right in Every Method
Everything You Need Right in Every Method Now a question will come to your mind that Sir friend
Now a question will come to your mind that Sir friend Everyone needs their account number too.
Everyone needs their account number too. Sir, please take your account number also.
Sir, please take your account number also. Take account, this is also a number sir, okay
Take account, this is also a number sir, okay Absolutely take it, no problem at all.
Absolutely take it, no problem at all. Now you go into the future and say
Now you go into the future and say Class
Payment class is now being played from here Okay, so we have said our
No, because banana is banana. Now understand first of all okay so the question is
Now understand first of all okay so the question is Do I need to create this payment class?
Do I need to create this payment class? Do I need to create an instance from this?
Do I need to create an instance from this? Sometimes you should create a payment class.
Sometimes you should create a payment class. Do you ever want to create an instance from this
Do you ever want to create an instance from this No, because it's just the base.
No, because it's just the base. Properties are not complete pieces.
Properties are not complete pieces. Need to understand this, whatever you create
Need to understand this, whatever you create You said I need to boil something.
You said I need to boil something. For this you need gas, if you need gas then this
For this you need gas, if you need gas then this The classes and essentials are complete.
The classes and essentials are complete. These are not things, they are essentials.
These are not things, they are essentials. okay a class that's essentials that
okay a class that's essentials that Data is held only as much as the base
Data is held only as much as the base If you have data, then let's assume you like cooking.
If you have data, then let's assume you like cooking. If we have to do it then we named this class
If we have to do it then we named this class Cooking
Cooking Essentials This is not complete, it is just
Essentials This is not complete, it is just It is essential, so we said here every
It is essential, so we said here every What will we need, gas, what will we use?
What will we need, gas, what will we use? How much are you using, right?
How much are you using, right? We made a protected gas or number
We made a protected gas or number Will tell you how many kilos of gas we are using?
Will tell you how many kilos of gas we are using? Which company's gas is being used?
Which company's gas is being used? I have taken the public name, okay so this
I have taken the public name, okay so this We're done, you say, cooking essentials.
We're done, you say, cooking essentials. So brother, whatever you cook, you need gas, who else will do it?
So brother, whatever you cook, you need gas, who else will do it? If you buy gas from C company, you will definitely need this.
If you buy gas from C company, you will definitely need this. You can cook anything you want now, you will say
You can cook anything you want now, you will say You are big players, you will say no.
You are big players, you will say no. We are sisterhood
Hey man No, not multiplayer
No, not multiplayer Oh, that friend who puts it in the machine and
Oh, that friend who puts it in the machine and The pass is kept outside on which your UPS
The pass is kept outside on which your UPS No, oh man, is he crazy?
No, oh man, is he crazy? Hey, the one who felt
But brother, it is kept in the kitchen which contains tea and Maggi. Making induction heater Friends making induction heater
Making induction heater Friends making induction heater Yes, induction heater, now you will say that
Yes, induction heater, now you will say that Induction heater induction heater
Induction heater induction heater gas will be needed
gas will be needed Hey friend, don't talk nonsense.
Hey friend, don't talk nonsense. You understand what I'm saying, okay, let's go.
You understand what I'm saying, okay, let's go. This is Cooking Essentials another class
This is Cooking Essentials another class Now I told you sir, what is happening here?
Now I told you sir, what is happening here? I am playing here, okay I have
I am playing here, okay I have Where to make banana vegetable, banana vegetable
Where to make banana vegetable, banana vegetable No, no, I will cook vegetables, only vegetables.
No, no, I will cook vegetables, only vegetables. I will make vegetable extension vegetable extension
I will make vegetable extension vegetable extension Cooking Essentials What it means
Cooking Essentials What it means This means that when you cook vegetables,
This means that when you cook vegetables, gas in it and name which gas gas gas name
gas in it and name which gas gas gas name Such a gas name of the gas name of the gas and gas
Such a gas name of the gas name of the gas and gas Both are included by default, so this
Both are included by default, so this The class is just an essentials class.
The class is just an essentials class. Never create an instance of this
Never create an instance of this Tomorrow you can extend and create more classes.
Tomorrow you can extend and create more classes. Want to make a cake? Class Cake Extension
Want to make a cake? Class Cake Extension Cooking Essentials is How We Go for It
Cooking Essentials is How We Go for It Now I know you're feeling me
Now I know you're feeling me Don't be afraid of this, get some things made and get them solved.
Don't be afraid of this, get some things made and get them solved. If you give it to me, I will get an idea how it will be done, sir.
If you give it to me, I will get an idea how it will be done, sir. Gut wait, wait a little friend, we are ahead
Gut wait, wait a little friend, we are ahead I will move ahead and complete my studies first and then
I will move ahead and complete my studies first and then I will make something, okay, don't worry, my
I will make something, okay, don't worry, my Are you moving along, where is the next chapter?
Are you moving along, where is the next chapter? What is the next chapter on the functions?
What is the next chapter on the functions? Let the money not come back from here.
Let the money not come back from here. [music]
[music] Go friends, today I am finally welcoming you.
Go friends, today I am finally welcoming you. I've been where I welcome you, true
I've been where I welcome you, true I wholeheartedly want to
I wholeheartedly want to Its name was functions
Its name was functions Tell me something very important in my ear
Tell me something very important in my ear I am listening carefully
I am listening carefully Low functions are very important
Low functions are very important If you read it well, it will be of great help in the future.
If you read it well, it will be of great help in the future. It will go away, you can take care of yourself, it's
It will go away, you can take care of yourself, it's time we should start let's go hello everyone
time we should start let's go hello everyone My name is Harsh Vandana Sharma and I'll be
My name is Harsh Vandana Sharma and I'll be Host Today to Teach You Functions I Have Came
Host Today to Teach You Functions I Have Came Along along from afar whose name is Turkey
Along along from afar whose name is Turkey Country and today I will teach you about functions.
Country and today I will teach you about functions. About Let's Go Ladies and Gentlemen
About Let's Go Ladies and Gentlemen Let's go to function types first.
Let's go to function types first. The thing I want to tell you is this
The thing I want to tell you is this What are functions, friend, understand functions.
What are functions, friend, understand functions. what happens when you're getting married
what happens when you're getting married If there is turmeric in it, then you can say that it is yours.
If there is turmeric in it, then you can say that it is yours. Yes, there is a wedding procession etc., okay, music
Yes, there is a wedding procession etc., okay, music If so, then all these are functions
If so, then all these are functions But what are functions in programming?
But what are functions in programming? There are functions in programming, sir.
There are functions in programming, sir. that you've written a code okay now you
that you've written a code okay now you You don't want the code to run immediately, such as
You don't want the code to run immediately, such as I said this code, console log and
I said this code, console log and I said it with love and to you in Hindi
I said it with love and to you in Hindi I would know that if this file is moved, it will explode.
I would know that if this file is moved, it will explode. If it works, then this code will run immediately.
If it works, then this code will run immediately. So what is the first requirement you have in the code?
So what is the first requirement you have in the code? I wrote it and you want me not to leave immediately when I
I wrote it and you want me not to leave immediately when I If I tell you to go then you can go when I want to.
If I tell you to go then you can go when I want to. The way is to write it in a function.
The way is to write it in a function. Give it to him and he will play it whenever you call him.
Give it to him and he will play it whenever you call him. So it will work right and basic JS I said
So it will work right and basic JS I said If you should come, you should get a little bit
If you should come, you should get a little bit Must-know functions
Must-know functions Okay, so because this is a class of functions.
Okay, so because this is a class of functions. No sir, this is in type script.
No sir, this is in type script. You will need to understand the class of functions, but
You will need to understand the class of functions, but But let me tell you first of all
But let me tell you first of all That was the way, where was the second thing function
That was the way, where was the second thing function You said it is used in 12 lines.
You said it is used in 12 lines. Wrote code that does what user login does
Wrote code that does what user login does What happens is the user gets logged in.
What happens is the user gets logged in. It is a 12 line code, now you say
It is a 12 line code, now you say Dude, I have to send the user to four different places.
Dude, I have to send the user to four different places. If you want to login then how do you write it brother?
If you want to login then how do you write it brother? Then that is what you should do.
Then that is what you should do. Write this 12 line code into a function.
Write this 12 line code into a function. Write his name as login and write that as you 12
Write his name as login and write that as you 12 different places, not 12, not four, four
different places, not 12, not four, four Different places are fine
If this is the story in Hindi, then it is in Datchi. Here is the function and I have lovingly written here.
Here is the function and I have lovingly written here. Created a function, its name is login, okay.
Created a function, its name is login, okay. And I wrote some code in this.
And I wrote some code in this. This is my code which assumes we
This is my code which assumes we What does he make me do to login, brother?
What does he make me do to login, brother? Wherever I want to run the code repeatedly
Wherever I want to run the code repeatedly I will write the login name and run this code there.
I will write the login name and run this code there. If it goes then this will be the story, if it is okay then this
If it goes then this will be the story, if it is okay then this The JavaScript functions at least
The JavaScript functions at least I have shown you the functions in JS.
I have shown you the functions in JS. I have given you a little idea, okay, now let's start.
I have given you a little idea, okay, now let's start. Whatever is written on line number two is written
Whatever is written on line number two is written You understand the function types, I will tell you
You understand the function types, I will tell you Let me tell you genuinely, as long as you create a function
Let me tell you genuinely, as long as you create a function You will never feel that you have to function
You will never feel that you have to function I need to create types, how long will that last?
I need to create types, how long will that last? Let me explain, you created this function, this is
Let me explain, you created this function, this is Perfect function in type script someone
Perfect function in type script someone There is no problem in this, yes one
There is no problem in this, yes one Tell me here if you can do something extra.
Tell me here if you can do something extra. Can you tell me what you are returning?
Can you tell me what you are returning? Let me explain the brackets of the function.
Let me explain the brackets of the function. You have written the name of the function and its
You have written the name of the function and its after the brackets containing the parameter and its
after the brackets containing the parameter and its You kill the body before it starts
You kill the body before it starts You can always tell what will return.
You can always tell what will return. What I said will return a string
What I said will return a string So what do I return from inside?
So what do I return from inside? I will do it, why is there no return, it means nothing.
I will do it, why is there no return, it means nothing. You can also return a blank string.
You can also return a blank string. Return it, it doesn't matter.
Return it, it doesn't matter. What will the function abcd return?
What will the function abcd return? will return the string that is datacache now if
will return the string that is datacache now if The function is not returning anything like
The function is not returning anything like At this time you should say wide here.
At this time you should say wide here. It means wide means
It means wide means The function will not return anything so the first
The function will not return anything so the first So learn this thing, well I will give you one
So learn this thing, well I will give you one I will tell you an interesting fact, why write so much?
I will tell you an interesting fact, why write so much? Your function is perfectly written by someone
Your function is perfectly written by someone Mika Lal cannot say that this is wrong.
Mika Lal cannot say that this is wrong. It is written, no one can say that it is written correctly.
It is written, no one can say that it is written correctly. That's perfectly written, and it will work.
That's perfectly written, and it will work. It will work perfectly but but but
It will work perfectly but but but Interesting fact, this is interesting.
Interesting fact, this is interesting. The fact is that when you go from one let to another
The fact is that when you go from one let to another Create a function that accepts a callback
Create a function that accepts a callback will call back is also a function ok
will call back is also a function ok So we have created a function ab cd now
So we have created a function ab cd now This one will accept one name and this one will accept
This one will accept one name and this one will accept Anyone will accept our call back.
Anyone will accept our call back. function is okay about the name so we
function is okay about the name so we I can guarantee that this is a brother
I can guarantee that this is a brother is the string now the call back is a function
is the string now the call back is a function No sir, you will not write like this that I will call
No sir, you will not write like this that I will call back is a function in case you don't know
back is a function in case you don't know You can't write like this, okay, so now here we go.
You can't write like this, okay, so now here we go. Function types, which is what this topic is about.
Function types, which is what this topic is about. I mean, sir, let me explain it to you.
I mean, sir, let me explain it to you. Don't grumble, first see here how to write
Don't grumble, first see here how to write How I used to learn right in my days
How I used to learn right in my days So the first thing I named A B CD is
So the first thing I named A B CD is Harsh said, what is the second thing, it is a function.
Harsh said, what is the second thing, it is a function. I passed an arrow function here.
I passed an arrow function here. Okay and said that brother, let's go inside.
Okay and said that brother, let's go inside. arrow function I passed it a
arrow function I passed it a I have also taken the value and that value
I have also taken the value and that value I have said it here, who is it?
I have said it here, who is it? The value is fine, now how do I identify it?
The value is fine, now how do I identify it? I know what my value is
I know what my value is The string will be of type ok ok now
The string will be of type ok ok now Listen, listen, there's no need to mumble at all. Listen.
Listen, listen, there's no need to mumble at all. Listen. Listen, what was the first thing I called AB CD?
Listen, what was the first thing I called AB CD? Given is Harsh which is a string so name
Given is Harsh which is a string so name What type of will we put directly?
What type of will we put directly? String Simple Sorted Okay second thing
String Simple Sorted Okay second thing call back which is a function so now look
call back which is a function so now look Now you will listen to me and you will see here what
Now you will listen to me and you will see here what I'm telling it to call back a function.
I'm telling it to call back a function. So first draw the shape of the arrow function
So first draw the shape of the arrow function First tell me it's done, tell me it's done, oh tell me
First tell me it's done, tell me it's done, oh tell me I have become a brother, say it, say it in your heart
I have become a brother, say it, say it in your heart Done okay so now c b is a function v
Done okay so now c b is a function v Can explicitly see accepting a parameter
Can explicitly see accepting a parameter So we can get a parameter there as well that
So we can get a parameter there as well that Gonna Be
Gonna Be There are strings, yes that's it
There are strings, yes that's it yes no man
yes no man Yes seriously, yes let's go, let's go.
Yes seriously, yes let's go, let's go. I said okay, so this is the value.
I said okay, so this is the value. I said, brother, this thing has happened exactly.
I said, brother, this thing has happened exactly. Okay, okay, now what is this returning?
Okay, okay, now what is this returning? Is there any return word written in it?
Is there any return word written in it? If it is not written from inside then it is just void
If it is not written from inside then it is just void I am returning it, no friend, no friend, yes friend
I am returning it, no friend, no friend, yes friend This is how it is, trust me, let's make another one.
This is how it is, trust me, let's make another one. Function ABC DE F This became the reason here
Function ABC DE F This became the reason here Pe naam hai age hai and main main shor hoon ye
Pe naam hai age hai and main main shor hoon ye You will get a call back, my friend, you will get it, I have to do it.
You will get a call back, my friend, you will get it, I have to do it. You will need to go ahead and write the code.
You will need to go ahead and write the code. Go further in your companies and you can
Go further in your companies and you can If you write in the project then it becomes brother
If you write in the project then it becomes brother It is absolutely necessary, okay, so let's start with the first
It is absolutely necessary, okay, so let's start with the first One thing is joy, the second thing is 25, the third thing is one.
One thing is joy, the second thing is 25, the third thing is one. If there is a callback function, give the callback function
If there is a callback function, give the callback function First of all, you have called the call back function here.
First of all, you have called the call back function here. Gave it and the basics are not doing anything in return
Gave it and the basics are not doing anything in return Console is locking and no parameters
Console is locking and no parameters Let's assume A B C D will lock the console
Let's assume A B C D will lock the console yes okay so okay sir okay so first
yes okay so okay sir okay so first I said the thing name, friend, this is clearly
I said the thing name, friend, this is clearly If it is a string then you can put its string here.
If it is a string then you can put its string here. I will write okay, the second thing I can clearly
I will write okay, the second thing I can clearly See that age is a number so I can write that
See that age is a number so I can write that As well, this also happened to me as the third thing.
As well, this also happened to me as the third thing. It is clear that the callback is a function.
It is clear that the callback is a function. So I quickly created an arrow function.
So I quickly created an arrow function. Said sir, if you are not doing anything in return then
Said sir, if you are not doing anything in return then Returns nothing if void simple edge
Returns nothing if void simple edge That's the story sir, okay now
That's the story sir, okay now What is the interesting fact if you are here
What is the interesting fact if you are here If you had taken an argument, you would have said that
If you had taken an argument, you would have said that What is the type of the argument if it is string
What is the type of the argument if it is string You take your argument here as well and
You take your argument here as well and What does its type say, it is string now?
What does its type say, it is string now? Whenever you write ARG inside, never
Whenever you write ARG inside, never By the way, C is also a function, okay, C is also
By the way, C is also a function, okay, C is also There is a function, inside this you can write your function
There is a function, inside this you can write your function If you accept then whenever you post your post here
If you accept then whenever you post your post here If we take arguments, if we take arguments, then just
If we take arguments, if we take arguments, then just The second c is also a function function function
The second c is also a function function function I will directly operate the CB, what is this?
I will directly operate the CB, what is this? I just want to give CB an argument.
I just want to give CB an argument. If I had to give it, I gave it to you.
If I had to give it, I gave it to you. It's about it, let me explain what happened.
It's about it, let me explain what happened. There will be confusion, isn't it? CB is an argument.
There will be confusion, isn't it? CB is an argument. Listen, my name is Harsh, his age is 25, and this one
Listen, my name is Harsh, his age is 25, and this one What will happen in the full function kay in CB
What will happen in the full function kay in CB C is also a function so I ran it
C is also a function so I ran it What did I pass as arguments while running
What did I pass as arguments while running If he comes here, he will come here
If he comes here, he will come here What will the console log be? A B CD Simple
What will the console log be? A B CD Simple In these cases, you don't know what I did.
In these cases, you don't know what I did. I have kept it, I will teach it to you first.
I have kept it, I will teach it to you first. Interesting Fact: Open Terminal Here
Interesting Fact: Open Terminal Here Then we are typing TSC. Our
Then we are typing TSC. Our filename minus minus
filename minus minus Watch it turned on compilation watch mode
Watch it turned on compilation watch mode I clicked on the plus here that will
I clicked on the plus here that will You can say take me to this other terminal.
You can say take me to this other terminal. Here the panel is now here I am with love
Here the panel is now here I am with love I will write this thing with love, you have to write it
I will write this thing with love, you have to write it We have to keep in mind that TJ is installed in our
We have to keep in mind that TJ is installed in our If we don't know about these cases then we will be saved from our problems.
If we don't know about these cases then we will be saved from our problems. can run js file let me explain nut
can run js file let me explain nut We installed the nuts from where we did
We installed the nuts from where we did was done in the beginning than we do our JS
was done in the beginning than we do our JS How can I run the file app.js just not
How can I run the file app.js just not no how how what this. tssb2b
A JS file is not a JS file. can I drive it okay yes how to drive it
can I drive it okay yes how to drive it Let me explain what happened, you first
Let me explain what happened, you first B CD EF is called and
B CD EF is called and The first thing you gave Harsh is the name
The first thing you gave Harsh is the name Okay, 25 is the edge given, which is fine then.
Okay, 25 is the edge given, which is fine then. You passed a function that is cb
You passed a function that is cb I went to the CB, okay, okay, I went, okay
I went to the CB, okay, okay, I went, okay So CB, when you made the call, you
So CB, when you made the call, you CB is calling you
CB is calling you CB when you hit the call means
CB when you hit the call means When you call this function, you
When you call this function, you what have you sent in the argument, so in this
what have you sent in the argument, so in this what came in and what happened inside console log a
what came in and what happened inside console log a B CD you say no no we
B CD you say no no we Only the arguments will be printed.
Only the arguments will be printed. The code will be compiled, can you run it again?
The code will be compiled, can you run it again? It's coming, what did you send from here?
It's coming, what did you send from here? If you send Harsh from here I know
If you send Harsh from here I know If you are seeing this pattern for the first time
If you are seeing this pattern for the first time You must have been blown away by this code.
You must have been blown away by this code. At this time I will ask you to please do this
At this time I will ask you to please do this Look at the thing two, three, four times, then you
Look at the thing two, three, four times, then you I will get an idea sir, okay and I will tell you
I will get an idea sir, okay and I will tell you I'm moving on to the next thing called
I'm moving on to the next thing called Optional and Default Parameters Quickly
Optional and Default Parameters Quickly Let's go, this is a very simple topic, okay?
Let's go, this is a very simple topic, okay? What are optional and default parameters?
What are optional and default parameters? We have already studied about functions.
We have already studied about functions. And now I'm teaching you again.
And now I'm teaching you again. Optional, you read gender here.
Optional, you read gender here. It is asked for and you say this is gender
It is asked for and you say this is gender The string would be A B C D E F.
The string would be A B C D E F. I have called Harsh Harsh, I told you h25, tell me
I have called Harsh Harsh, I told you h25, tell me And here I also sent you a mail with love.
And here I also sent you a mail with love. Now I have told A B C D F here.
Now I have told A B C D F here. We have a new guy calling
We have a new guy calling He is the one from today, he is the new boy of today.
He is the one from today, he is the new boy of today. His name is Lag Batak, okay, what's his name?
His name is Lag Batak, okay, what's his name? His lag lag lag batak who is a boy is a boy
His lag lag lag batak who is a boy is a boy Or not, I don't know, I am not sure boy
Or not, I don't know, I am not sure boy Is it a boy or a girl or something in between or what?
Is it a boy or a girl or something in between or what? We never know theek hai because it's lag batak theek
We never know theek hai because it's lag batak theek If so, I asked the boy, how many
If so, I asked the boy, how many He is about 22 years old, okay?
He is about 22 years old, okay? The boy is 22 years old and the boy says that I
The boy is 22 years old and the boy says that I I am not interested in revealing my gender.
I am not interested in revealing my gender. So in that case you will put this gender
So in that case you will put this gender question mark which will make this field
question mark which will make this field Optional simple edge that okay so here it is.
Optional simple edge that okay so here it is. Our story is about a story that if you are a
Our story is about a story that if you are a Parameters You give three parameters
Parameters You give three parameters All three lamps are gone, you gave two, then the third one
All three lamps are gone, you gave two, then the third one Because it is optional, you can give it or
Because it is optional, you can give it or Na de type script will not complain
Na de type script will not complain about it okay so that is optional
about it okay so that is optional parameter it takes us to another topic another
parameter it takes us to another topic another Topic: Yes, I really swear and that's his name.
Topic: Yes, I really swear and that's his name. has default parameters okay so now you
has default parameters okay so now you Gender may or may not be present here.
Gender may or may not be present here. And to avoid it from coming, you can define it here.
And to avoid it from coming, you can define it here. Maybe by default we define gender
Maybe by default we define gender kept by
Kant Kant or so they say not to be
Kant or so they say not to be Disclose can say that okay it
Disclose can say that okay it Our value is right good so it's
Our value is right good so it's Complaining Declared But Its Value Is Never
Complaining Declared But Its Value Is Never Red eye no actually I no no that to that
Red eye no actually I no no that to that There is a linting error, the name is as it has
There is a linting error, the name is as it has nothing to do
Within parameter cannot have a query Mark and treat o basically saying that you do so
Mark and treat o basically saying that you do so can't do that this is optional as well and you
can't do that this is optional as well and you Inila was also removing it right there.
Inila was also removing it right there. it's okay let's go a b c d o a b c
it's okay let's go a b c d o a b c D E F Let's Give It a Name Harsh Let's
D E F Let's Give It a Name Harsh Let's Give it an age of 25 and I know my gender
Give it an age of 25 and I know my gender Because yesterday I told you I
Because yesterday I told you I I even checked my gender in the washroom.
I even checked my gender in the washroom. When I checked my gender, it was male.
When I checked my gender, it was male. It has come out, you guys should also check it.
It has come out, you guys should also check it. what is your gender coming out ok
what is your gender coming out ok Please check carefully, we have a luck button
Please check carefully, we have a luck button Hey Lak Batak, he's a very important guy, Lak Batak
Hey Lak Batak, he's a very important guy, Lak Batak Whose age is 22 and he is no he he no
Whose age is 22 and he is no he he no Can we say sorry, I got lost, it is not sure that
Can we say sorry, I got lost, it is not sure that He has to tell his gender, okay, so in that case
He has to tell his gender, okay, so in that case What gender of both are we going to get in
What gender of both are we going to get in I will check it here with love, let's go.
I will check it here with love, let's go. Harsh 25 Male Lag Batak 22 Not to Be
Harsh 25 Male Lag Batak 22 Not to Be Disclose okay sots how optional end
Disclose okay sots how optional end Default parameters work so I believe you
Default parameters work so I believe you People must have understood that he has really come.
People must have understood that he has really come. I have not gone, don't lie, I have come, have I come?
I have not gone, don't lie, I have come, have I come? So let's move on
So let's move on [music]
[music] You know, I just ate my food.
You know, I just ate my food. I'm telling you I'm not lying, I swear
I'm telling you I'm not lying, I swear And I heard the song, you guys tell me
And I heard the song, you guys tell me How is this person laughing?
How is this person laughing? The world is taunting me for my foolishness.
The world is taunting me for my foolishness. The world is talking about my failures but I am working on them.
The world is talking about my failures but I am working on them. remained
remained All my flaws
All my flaws But if the wind changes tomorrow, this bastard Sharma
But if the wind changes tomorrow, this bastard Sharma Our own will come and we call ourselves our own.
Our own will come and we call ourselves our own. Saying that you are our own
Saying that you are our own what do you call those arms, what do
what do you call those arms, what do wee se bahey in english let's let's
wee se bahey in english let's let's Search That
Search That First because it's important not to
First because it's important not to Bah Bah Me In English Very Important
Bah Bah Me In English Very Important is in the
is in the Our arms are our own,
Our arms are our own, will call us
Because I am very stubborn and you Let's go without mucho di now we will read further
Let's go without mucho di now we will read further What exactly is on the rest parameters
What exactly is on the rest parameters That function, we have a function here.
That function, we have a function here. Created Just Now Function ABCD
Created Just Now Function ABCD what is rest parameter in hindi
what is rest parameter in hindi Understand that you have so many parameters here.
Understand that you have so many parameters here. I gave it to you, elder brother, I gave it to you, so now this much
I gave it to you, elder brother, I gave it to you, so now this much To accept the parameters, you must
To accept the parameters, you must So many arguments there
So many arguments there If you have given then all those parameters also
If you have given then all those parameters also If you have to make it then you have decided a b
If you have to make it then you have decided a b Saddi, by doing this you made it 12, which is
Saddi, by doing this you made it 12, which is OK, it will work, but
This is the date and you will write it here. RGS
If it is that, what does it mean sir? If you want to say then basically this is the rest
If you want to say then basically this is the rest is called the rest operator and this is the spread
is called the rest operator and this is the spread It is called an operator and is different at two places.
It is called an operator and is different at two places. It is used everywhere and has different meanings.
It is used everywhere and has different meanings. Like kal kal means tomorrow and tomorrow
Like kal kal means tomorrow and tomorrow means tomorrow is both tomorrow but
means tomorrow is both tomorrow but They have different meanings in different sentences.
They have different meanings in different sentences. Similarly, you can put a dot three times.
Similarly, you can put a dot three times. It means either rest or spread
It means either rest or spread Now we have to understand what it means when and where.
Now we have to understand what it means when and where. If so, then let's go like this
If so, then let's go like this Understand the parameters of the function
Understand the parameters of the function If I put dot dot dot then you will see it there
If I put dot dot dot then you will see it there But all the lamps
But all the lamps The passed arguments are stored in a single variable sn
The passed arguments are stored in a single variable sn Hey, you are keeping it, let me explain as and hey, you are keeping it
Hey, you are keeping it, let me explain as and hey, you are keeping it Yes, this is what it means in Hindi.
Yes, this is what it means in Hindi. What is function ab
CD Function A B C & D Let's Go Then We have called the AB CD function here.
We have called the AB CD function here. B CD and here we have said it
B CD and here we have said it The string is quite clear here.
The string is quite clear here. Actually don't name it AB CD.
Actually don't name it AB CD. Name it well, it's very clear here.
Name it well, it's very clear here. If you give 12 here then it will not
If you give 12 here then it will not Work because you have said string but
Work because you have said string but If you double quote 12 it will
If you double quote 12 it will Work right is right now listen to me listen o
Work right is right now listen to me listen o Listen, listen, now you have decided
Listen, listen, now you have decided No, no, I have to give many values.
No, no, I have to give many values. is 1 2 3 4 5 6 7 8 9 and you will have in your mind
is 1 2 3 4 5 6 7 8 9 and you will have in your mind Why would we give sum as a function?
Why would we give sum as a function? By name in which I can write any number of numbers
By name in which I can write any number of numbers I can send it to everyone, so this
I can send it to everyone, so this What to perform the thing, elder brother
What to perform the thing, elder brother You need this much numbers now.
You need this much numbers now. You will have to create parameters, Lord.
You will have to create parameters, Lord. what can you do here dot dot dot ch
what can you do here dot dot dot ch Is rest rest means pick up all these and one
Is rest rest means pick up all these and one Hey, put it in my kiss, hey, whatever it is
Hey, put it in my kiss, hey, whatever it is You will name it later, for example, ARR.
You will name it later, for example, ARR. This will become an array and in this array you
This will become an array and in this array you All the numbers will be edge and now you
All the numbers will be edge and now you If I have to tell you then what is this number?
If I have to tell you then what is this number? I will have to tell you this, okay, and I will tell you this
I will have to tell you this, okay, and I will tell you this I will definitely lock it and show it to you friend, let's
I will definitely lock it and show it to you friend, let's Go Chalo To Fat Fat Nad Duchess And You Can
Go Chalo To Fat Fat Nad Duchess And You Can Clearly, one hey has been made and hey
Clearly, one hey has been made and hey All the members are inside, now you can do it in this way
All the members are inside, now you can do it in this way can speak to
can speak to Yes friends friends there is a method come don't know
Yes friends friends there is a method come don't know What will it do, it's just fine, whatever it is.
What will it do, it's just fine, whatever it is. I have said here Aman is fine Abhay is fine
I have said here Aman is fine Abhay is fine Sumit, okay, there are many in this way.
Sumit, okay, there are many in this way. If you have given friends then now you can say P here
If you have given friends then now you can say P here Yes, everything will remain the same in the same way.
Yes, everything will remain the same in the same way. Here you can say that there is no equal in the name
Here you can say that there is no equal in the name what is its name
The world is laughing at you, look brother. fr are accepting fr function
fr are accepting fr function Accepting a lot of parameters, we have a
Accepting a lot of parameters, we have a B and C can write this way, tell all three
B and C can write this way, tell all three will have to string string string
will have to string string string What's better than this? Go there, we're gone.
What's better than this? Go there, we're gone. String are simple at
String are simple at Don't be done, just set it, that's all, right?
Don't be done, just set it, that's all, right? The story ends here and going forward you can
The story ends here and going forward you can If you want to work then you can perform that
If you want to work then you can perform that We have ARGS coming, you go zero
We have ARGS coming, you go zero They will give you peace and you will go to the
They will give you peace and you will go to the Give you what is undefined, we know this
Give you what is undefined, we know this should be in JavaScript if you have a
should be in JavaScript if you have a Are you seeing such a hey in which there are five
Are you seeing such a hey in which there are five elements and you asked for the sixth element
elements and you asked for the sixth element If you take it then an error will come Hindi
If you take it then an error will come Hindi I should have known Come on right spread
I should have known Come on right spread What is operator spread spread
What is operator spread spread operator is when you have an array
operator is when you have an array Ho Just Like That And You Will Get Its Duplicate
Ho Just Like That And You Will Get Its Duplicate If you want to get a copy then dot dot dot a rr this also
If you want to get a copy then dot dot dot a rr this also It is dotted, okay, if you want to remember then A RR
It is dotted, okay, if you want to remember then A RR Basically, if you do it, it will be like dot dot dot
Basically, if you do it, it will be like dot dot dot will you do that, that is basically that all its members
will you do that, that is basically that all its members Pick it up and bring it here, I know.
Pick it up and bring it here, I know. It is confusing, remember the functions brother
It is confusing, remember the functions brother When you have a parameter, when you have an argument
When you have a parameter, when you have an argument Send him lots and you will get him in one go
Send him lots and you will get him in one go Have to convert that is rest operator that
Have to convert that is rest operator that also dot dot dot and when you have a hey and
also dot dot dot and when you have a hey and I want to copy the values of the objects.
I want to copy the values of the objects. somewhere or bring him there
somewhere or bring him there If you want, that is pred operator dot dot
If you want, that is pred operator dot dot Dot again this is not type script this
Dot again this is not type script this This is basic JavaScript I haven't covered yet.
This is basic JavaScript I haven't covered yet. I can do it but I already covered it
I can do it but I already covered it have done
please please please go and please front end Please take the trouble to say goodbye to domination
Please take the trouble to say goodbye to domination And support us because we are poor.
And support us because we are poor. I am very poor, do you understand this much?
I am very poor, do you understand this much? He is poor, his hair has fallen off, go and
He is poor, his hair has fallen off, go and Please please buy it thank you let's
Please please buy it thank you let's [music]
[music] Go, I have brought you to the function
Go, I have brought you to the function One number topic on overloading may not be fun
One number topic on overloading may not be fun So the money will be returned from here, let's go.
So the money will be returned from here, let's go. Function a b cd Function a b cd we have
Function a b cd Function a b cd we have Create two functions named functionA whose
Create two functions named functionA whose name function a b cd is not but a b
name function a b cd is not but a b CD is the name of this concept of both.
CD is the name of this concept of both. It says function overloading but it is written wrong.
It says function overloading but it is written wrong. Why is it written wrong because both of these
Why is it written wrong because both of these Signature is same now you might ask that reason
Signature is same now you might ask that reason The signature is the same, what does this mean?
The signature is the same, what does this mean? It is exactly the same, there is not a single difference.
It is exactly the same, there is not a single difference. If yes then this function overloading is wrong.
If yes then this function overloading is wrong. Meaning of function overloading
Meaning of function overloading You can keep the name of the function same, its name is A
You can keep the name of the function same, its name is A It is B CD, he said yes its name is A B CD
It is B CD, he said yes its name is A B CD If you say yes then this is the function
If you say yes then this is the function You are saying overloading, right now you are saying it wrong.
You are saying overloading, right now you are saying it wrong. Yes, because there is still no signature in his signature.
Yes, because there is still no signature in his signature. There should be a difference, which means that you
There should be a difference, which means that you take a parameter number now you will see so
take a parameter number now you will see so The first one is asking for a parameter.
The first one is asking for a parameter. I am not asking for it, the name is the same but still
I am not asking for it, the name is the same but still These two will also work and this is everything else
These two will also work and this is everything else Function overloading in the language
Function overloading in the language The script says that this will not be allowed to happen.
The script says that this will not be allowed to happen. You are in our house, sir. We will not treat you like this.
You are in our house, sir. We will not treat you like this. If you let me walk, Tight tells you first.
If you let me walk, Tight tells you first. I will create the function signature for you.
I will create the function signature for you. I am teaching see see see function
I am teaching see see see function Write a b cd which is the function
Write a b cd which is the function The name is a and write its value, its type
The name is a and write its value, its type Write I'm sorry string and tell
Write I'm sorry string and tell what will the function return i said void
what will the function return i said void No problem, now you tell me your second
No problem, now you tell me your second What is the function from A let's that too AB
What is the function from A let's that too AB CD is what should happen to Let's
CD is what should happen to Let's Because we are studying function overloading.
Because we are studying function overloading. And here we're saying two things.
And here we're saying two things. will accept the first string will be the second
will accept the first string will be the second There will be a number and we will return a number.
There will be a number and we will return a number. Okay, so these are our two functions, right?
Okay, so these are our two functions, right? We have given the signatures of both of them.
We have given the signatures of both of them. Both will be named A B CD
Both will be named A B CD will accept certain parameters and a
will accept certain parameters and a will return void meaning nothing and a
will return void meaning nothing and a will return the number right so now I have done the first
will return the number right so now I have done the first The function created is not the first one, actually the same.
The function created is not the first one, actually the same. You have to create the function and pass those parameters here.
You have to create the function and pass those parameters here. You will accept it, right, so you will say it here.
You will accept it, right, so you will say it here. A's gonna be string B's gonna be
A's gonna be string B's gonna be Number
We will have to do that sir, we have a The value of is of type a if string
The value of is of type a if string Okay and as well as type of B if a
Okay and as well as type of B if a number so we're talking about what we
number so we're talking about what we what are we talking about we are talking about
what are we talking about we are talking about If this signature is not there then we are talking
If this signature is not there then we are talking There's this signature right behind the way, an error.
There's this signature right behind the way, an error. Giving this overloaded signature nut
Giving this overloaded signature nut Compatible with implementation signatures
Compatible with implementation signatures Wait a little friend, you will understand, don't worry.
Wait a little friend, you will understand, don't worry. ok so
ok so So now they are saying that every day
So now they are saying that every day The implementation is not valid because we
The implementation is not valid because we I put a question mark here which means
I put a question mark here which means that any one of these will do, so let's see for a while
that any one of these will do, so let's see for a while How does this work? So the story is like this first.
How does this work? So the story is like this first. Look here, I will explain it to you
Look here, I will explain it to you What has been the time given by A?
What has been the time given by A? What number of strings and b gave you
What number of strings and b gave you Don't do this when you look at one place
Don't do this when you look at one place String is in one place String is in one place
String is in one place String is in one place You have their number at one place.
You have their number at one place. Time, you can define its type here.
Time, you can define its type here. Okay, you type it here first.
Okay, you type it here first. thing to any right then you go inside and type
thing to any right then you go inside and type Check if the type of a string is
Check if the type of a string is Type of B number is right, you are checking this
Type of B number is right, you are checking this Yes, it's all right, one thing is going well.
Yes, it's all right, one thing is going well. And it may happen that A B CD is sometimes A
And it may happen that A B CD is sometimes A A will receive it but B will not receive it.
A will receive it but B will not receive it. You can do it this way, optionally okay.
You can do it this way, optionally okay. Now we will slowly start checking here.
Now we will slowly start checking here. If we do, the first thing we'll say here is
If we do, the first thing we'll say here is Bhaiya type of a if it is string as well
Bhaiya type of a if it is string as well With what we can call you type of B
With what we can call you type of B Type of B is our number from let's okay
Type of B is our number from let's okay So type of B is our number but from this
So type of B is our number but from this First, we have to check whether B
First, we have to check whether B Is it available or not, we are here
Is it available or not, we are here will say b is not equal to null okay b
will say b is not equal to null okay b There is no tap or what do you mean by that?
There is no tap or what do you mean by that? But it is available, so how will we write B?
But it is available, so how will we write B? is not undefined or else b is undefined
is not undefined or else b is undefined Let's do one thing, let's do it like this brother
Let's do one thing, let's do it like this brother A is our string and B is our what
A is our string and B is our what is undefined then a is a string but b is
is undefined then a is a string but b is but b is undefined so in this case
but b is undefined so in this case We can clearly write on Y that this
We can clearly write on Y that this We are working on our previous function.
We are working on our previous function. So here we will write log, we will write
So here we will write log, we will write I will give it to you, okay, great, and from here, okay.
I will give it to you, okay, great, and from here, okay. That's all we have for now, then
That's all we have for now, then made another if we said okay maybe
made another if we said okay maybe The next one matches the type of our
The next one matches the type of our string
string This string is as well as B
This string is as well as B Our type
Our type of type of B, our number is okay
of type of B, our number is okay If yes, then in that case we will return from here.
If yes, then in that case we will return from here. Will do let's
Will do let's Se tooth thik hai interesting good end now
Se tooth thik hai interesting good end now whatever we possibly can
whatever we possibly can are that all I have to do
are that all I have to do With direct error, you can also throw else
With direct error, you can also throw else New Throw New
Error okay simple so basically what here It is happening that you are checking here first.
It is happening that you are checking here first. A key value string for a condition containing
A key value string for a condition containing and the value of b is undefined
and the value of b is undefined which is basically this one right second
which is basically this one right second I am saying in Hindi that or like this
I am saying in Hindi that or like this It is also possible that someone may call AB CD.
It is also possible that someone may call AB CD. a has a value of string or b has a value of number
a has a value of string or b has a value of number Along with this, you can also do this narrowing inside.
Along with this, you can also do this narrowing inside. whether the value of a is a string or
whether the value of a is a string or No if the value of a is a string as well
No if the value of a is a string as well with the value of b being a number so this is out
with the value of b being a number so this is out It works if we convert A B CD into just one
It works if we convert A B CD into just one Still it will work fine
Still it will work fine If I convert A B CD to a string end
If I convert A B CD to a string end I will give you one number, still it will work, then it will
I will give you one number, still it will work, then it will Work in both cases, this is how function
Work in both cases, this is how function Overloading works, okay, so it's here.
Overloading works, okay, so it's here. Sir, the story about function overloading is very
Sir, the story about function overloading is very You will understand it better in the coming chapters.
You will understand it better in the coming chapters. Let's move on to
Let's move on to [music]
[music] Go, very big problem, very big problem
Go, very big problem, very big problem Seriously, I swear I know what his name is.
Seriously, I swear I know what his name is. Generis Generis friends, one serial comes at a time
Generis Generis friends, one serial comes at a time His name is God, not Game of Thrones
His name is God, not Game of Thrones Game of Thrones Game of Thrones I watched
Game of Thrones Game of Thrones I watched No, but I know there's one
No, but I know there's one There was a girl, her name was Neris, and so
There was a girl, her name was Neris, and so There is a topic in it, its name is Generics.
There is a topic in it, its name is Generics. And generics and neris are quite similar words.
And generics and neris are quite similar words. Sounds exactly like what I
Sounds exactly like what I I actually brought it for you myself.
I actually brought it for you myself. The name of the game is Jack and Jones
The name of the game is Jack and Jones Can you see, look at the hat, friends?
Can you see, look at the hat, friends? Let me wear this and show you
Let me wear this and show you Hey bro, Hopi, you understand the point.
Hey bro, Hopi, you understand the point. I have just bought the cap, when the hair grows back
I have just bought the cap, when the hair grows back I'll take off my hat, but still
I'll take off my hat, but still I will wear it sometimes, the more important thing is this
I will wear it sometimes, the more important thing is this that we're going to read Generis
that we're going to read Generis Generis is a very important topic and I
Generis is a very important topic and I Believe me, this is a topic that is very
Believe me, this is a topic that is very If people don't understand then I will tell you
If people don't understand then I will tell you I am carrying you on the screen and you are mine
I am carrying you on the screen and you are mine Where have you come together on screen and screen
Where have you come together on screen and screen what will we do now after we come to
what will we do now after we come to I will do the same thing, wait a second, first I
I will do the same thing, wait a second, first I I will fix the screen please, thank you, thank you.
I will fix the screen please, thank you, thank you. screen ok oh let's go guys now we
screen ok oh let's go guys now we The one who is going to read it is called Generis It
The one who is going to read it is called Generis It time we shall start let's go quickly first
time we shall start let's go quickly first Listen to a real world scenario.
Listen to a real world scenario. Creating a Function
Creating a Function who will accept will accept
who will accept will accept Any
Any Value End
Value End Create a function that will print it.
Create a function that will print it. Now our Labradors will start to breed.
Now our Labradors will start to breed. Because we never thought of anything like that.
Because we never thought of anything like that. So there is a function called lager which is
So there is a function called lager which is Accepting n parameters basically
Accepting n parameters basically is a rg which will which will provide some
is a rg which will which will provide some Value which is called argument obviously
Value which is called argument obviously Right, I said it clearly here.
Right, I said it clearly here. Let's do one thing, so that you don't get confused
Let's do one thing, so that you don't get confused Accepting a whose type is
Accepting a whose type is String okay there we go thatchi is so
String okay there we go thatchi is so When I drive the Lager in the future
When I drive the Lager in the future So I can send a string here.
So I can send a string here. Because I have clearly said that Lager
Because I have clearly said that Lager I'm passing a parameter as an argument.
I'm passing a parameter as an argument. That is hey and it will go and save in parameter a
That is hey and it will go and save in parameter a and its type should be string
and its type should be string I want, I want, if you are understanding the matter then in the lagar
I want, I want, if you are understanding the matter then in the lagar The value I sent went here.
The value I sent went here. and its type must be string
and its type must be string But the problem is that this function of ours
But the problem is that this function of ours We clearly said we have to create a function
We clearly said we have to create a function Which will accept any value not
Which will accept any value not String Just String No Any
String Just String No Any Value means elder brother, tomorrow you
Value means elder brother, tomorrow you We will also put true here and this means
We will also put true here and this means Tomorrow you can put anything here.
Tomorrow you can put anything here. don't know what you keep it could be
don't know what you keep it could be Anything Right It Could Be Anything But
Anything Right It Could Be Anything But Clearly our function is giving error 12
Clearly our function is giving error 12 True Null You can't have all three of these. Why?
True Null You can't have all three of these. Why? Because you said a is of type string
Because you said a is of type string So to avoid this, you can type here
So to avoid this, you can type here I will put it on, Annie, now you give me anything here
I will put it on, Annie, now you give me anything here Right, you will say sir, my studies are over here.
Right, you will say sir, my studies are over here. finished gennex we are going to our home and
finished gennex we are going to our home and Then after that we will go home and eat food.
Then after that we will go home and eat food. After that we will start swatting
After that we will start swatting It is not like that because
It is not like that because The study of generics will now begin because
The study of generics will now begin because Sometimes the mother-in-law also has a big problem when
Sometimes the mother-in-law also has a big problem when You are sending him for the first time, he went to A
You are sending him for the first time, he went to A And if its type is same then there is no problem.
And if its type is same then there is no problem. It will come, you are sending 12, it is type A or not.
It will come, you are sending 12, it is type A or not. Even then there will be no problem but problem
Even then there will be no problem but problem Now it will come when we write A and dot ting ting
Now it will come when we write A and dot ting ting we can't see any help there
we can't see any help there Can't help with any intelligence work
Can't help with any intelligence work Type checking is not happening
Type checking is not happening Is there any type script which is the main purpose
Is there any type script which is the main purpose That was defied because you used an A.
That was defied because you used an A. What have you typed, Annie, I would explain.
What have you typed, Annie, I would explain. What have you sent in the queue at this time?
What have you sent in the queue at this time? The value of a key which is of type string
The value of a key which is of type string If you would have stringed it, you would have stringed it
If you would have stringed it, you would have stringed it And if you go inside and do a dot, you will get all
And if you go inside and do a dot, you will get all Methods that look for strings related to endpoints
Methods that look for strings related to endpoints All properties are visible
All properties are visible Because what type have you put for A A
Because what type have you put for A A Any then now there is no hour for doing a dot
Any then now there is no hour for doing a dot Why would you see it because her type is any
Why would you see it because her type is any I told you earlier about friend and Annie
I told you earlier about friend and Annie I have told you to stay away from Annie.
I have told you to stay away from Annie. I don't want to get into it, I want to stay away from Annie.
I don't want to get into it, I want to stay away from Annie. So if you avoid A and NA sorry A
So if you avoid A and NA sorry A If you stay, a lot of work can be done and that's it.
If you stay, a lot of work can be done and that's it. For this problem, for which problem
For this problem, for which problem Let me tell you the problem once again.
Let me tell you the problem once again. Listen, because A is not type A.
Listen, because A is not type A. kept it and had to keep it because you
kept it and had to keep it because you I know, go ahead and next time you string
I know, go ahead and next time you string You can also get it next time you are here.
You can also get it next time you are here. You can also ask for an undefined value next
You can also ask for an undefined value next You can also take a tap here if you want.
You can also take a tap here if you want. Yes, you want this lager function of yours to be
Yes, you want this lager function of yours to be Accept the value and type
Accept the value and type The script is telling you that the value of a
The script is telling you that the value of a You can only tell one thing from Right You Might that
You can only tell one thing from Right You Might that Wait what can I do I can string and
Wait what can I do I can string and null and undefined and string s all do
null and undefined and string s all do I can, Lord, but look at you now.
I can, Lord, but look at you now. If I leave the number then you will say wait, take this number.
If I leave the number then you will say wait, take this number. Brother, if you had to do all this then you would have
Brother, if you had to do all this then you would have Why are you studying with me? We don't have to do this.
Why are you studying with me? We don't have to do this. Okay, and here we go on the payroll.
Okay, and here we go on the payroll. How to listen to Generis listen to
How to listen to Generis listen to Listen to the role of Generis, listen to us, we are one now.
Listen to the role of Generis, listen to us, we are one now. Let's just talk about functions going forward.
Let's just talk about functions going forward. We will talk about classes as well as interface.
We will talk about classes as well as interface. It is written that we will talk, it is written in front
It is written that we will talk, it is written in front We are yours, aren't we?
We are yours, aren't we? When using the function
When using the function I will tell you, I will tell you, I will tell you the time
I will tell you, I will tell you, I will tell you the time can tell when doing
can tell when doing are that
are that Janex na hum hum use a function
Janex na hum hum use a function Time can tell
Function Function Arguments to kiss
to kiss It's better to say it anyway
It's better to say it anyway what type of treat
What do we say when using a function? You can tell what type the function arguments can be.
You can tell what type the function arguments can be. Treat with
Treat with Meaning, elder brother, this in A B C D
Meaning, elder brother, this in A B C D A is we can tell that when using
A is we can tell that when using While using it, you can tell that automatically
While using it, you can tell that automatically How to treat
How to treat How to do it sir, how is this possible
How to do it sir, how is this possible Absolutely
Yes, it is possible, exactly how I am giving you a demo first, will you see it?
I am giving you a demo first, will you see it? You will see the demo where the function is defined
You will see the demo where the function is defined where its code is written and where
where its code is written and where Her braces are turning on small
Her braces are turning on small Brackets with HTML between them
Brackets with HTML between them Put a tag and write whatever comes to mind inside.
Put a tag and write whatever comes to mind inside. I wrote H because my name is Harsh.
I wrote H because my name is Harsh. Yes but usually people write TT
Yes but usually people write TT Why is this such an old tradition?
Why is this such an old tradition? I remember it was in the year 1600 there
I remember it was in the year 1600 there There was a great king, he said of T
There was a great king, he said of T Meaning template classes and C+
Meaning template classes and C+ There is a very old language called Plus.
There is a very old language called Plus. Akbar has a very old friend
Akbar has a very old friend He had developed
He had developed So from that time onwards, do template classes and do whatever you want.
So from that time onwards, do template classes and do whatever you want. The entire scene is coming on the right
The entire scene is coming on the right So here because in type script this
So here because in type script this The functions you are using
The functions you are using Yes, it is considered in the same way.
Yes, it is considered in the same way. that a template function is a template
that a template function is a template If there is value then the name given is t
If there is value then the name given is t I keep it but if you want then you can keep it if you want.
I keep it but if you want then you can keep it if you want. So keep L, if you want you can keep C, right?
So keep L, if you want you can keep C, right? But if we want, we can keep t point
But if we want, we can keep t point You understand, okay, so sir, what are you doing?
You understand, okay, so sir, what are you doing? What are you doing, I will explain it to you.
What are you doing, I will explain it to you. Come with me if we are talking about the name of the function
Come with me if we are talking about the name of the function After that write this and while calling here
After that write this and while calling here Let me tell you, now our string tea is ready.
Let me tell you, now our string tea is ready. Hey wait wait wait wait I said it in reverse
Hey wait wait wait wait I said it in reverse Is our T now a string?
Is our T now a string? means what does it mean means is that we
means what does it mean means is that we Here we can say that the type of A is t.
Here we can say that the type of A is t. yes no friend yes
yes no friend yes Hey man, this is going on, yes, absolutely.
Hey man, this is going on, yes, absolutely. It is running. Next time I run it, if I do this
It is running. Next time I run it, if I do this Let me tell you that our number is generic here.
Let me tell you that our number is generic here. And here I can give 12 now sir this
And here I can give 12 now sir this How can this happen, how can this happen
How can this happen, how can this happen It is absolutely possible, now first of all I will say
It is absolutely possible, now first of all I will say Listen, you have A B CD inside the brackets
Listen, you have A B CD inside the brackets The string is written here as A B CD
The string is written here as A B CD t is written inside brackets okay so t
t is written inside brackets okay so t gets the value of the string ok and
gets the value of the string ok and We have told you what is the type of A, t t what
We have told you what is the type of A, t t what Tha string ok ok bhach ok I make you
Tha string ok ok bhach ok I make you Now I am doing three functions, not five.
Now I am doing three functions, not five. I'll make it and show you, okay, I'm not enjoying it anymore.
I'll make it and show you, okay, I'm not enjoying it anymore. Go and take your money back from here, okay?
Go and take your money back from here, okay? Okay, so this is it, A, B and C are fine.
Okay, so this is it, A, B and C are fine. Yes, I said sir, our A is H
Yes, I said sir, our A is H It will be of the type whichever you tell it to be.
It will be of the type whichever you tell it to be. What will remain is okay b our string type
What will remain is okay b our string type What will it be brother and type C as our number.
What will it be brother and type C as our number. It is clear sir, it is fine
It is clear sir, it is fine It's clear brother, now that I am A B
It's clear brother, now that I am A B Let me know before I play the CD.
Let me know before I play the CD. Brother, you will have to know what is the type of generic.
Brother, you will have to know what is the type of generic. H's type is all strings, so now when
H's type is all strings, so now when I will give the value so what is the type of A
I will give the value so what is the type of A and h what is the string so let me first
and h what is the string so let me first You must provide a value string
You must provide a value string And the second value is also a string.
And the second value is also a string. So I give you the Puri, I say
So I give you the Puri, I say Bhaiya, you have to arrange four plates of Halwa Puri.
Bhaiya, you have to arrange four plates of Halwa Puri. these things are happening these things are happening
these things are happening these things are happening okay so this is called studying so
okay so this is called studying so In the subb function that we just created, this
In the subb function that we just created, this What is the use case of a generic function?
What is the use case of a generic function? The case is that when you come, I will give you a demo.
The case is that when you come, I will give you a demo. I have to write console log again and again.
I have to write console log again and again. You have to write the console log, right?
You have to write the console log, right? We have to write again and again what we want
We have to write again and again what we want No, no, friend, I will not make a log of my own.
No, no, friend, I will not make a log of my own. If you want, just write it inside the log and then go
If you want, just write it inside the log and then go So let's make one again, I'll make this
So let's make one again, I'll make this I used to love him a lot earlier,
I used to love him a lot earlier, I didn't like it brother, which log was complete?
I didn't like it brother, which log was complete? If I have to write, I told the log
If I have to write, I told the log Diya you are generic ok ji when I call
Diya you are generic ok ji when I call If I do, I will tell you in Hindi.
If I do, I will tell you in Hindi. We are sending the string sir and here
We are sending the string sir and here We have sent the string, okay sir and
We have sent the string, okay sir and We have accepted it here, brother.
We have accepted it here, brother. I have added the value and value in the parameter
I have added the value and value in the parameter I said it's t and here I define
I said it's t and here I define Done sir, my value here is t
Done sir, my value here is t Okay sir, then I have to do console log.
Okay sir, then I have to do console log. He is Bhaiya well ko simple as that now I
He is Bhaiya well ko simple as that now I Sometime in the future, console logs will be replaced with logs.
Sometime in the future, console logs will be replaced with logs. You might say and you
You might say and you Might think that sir, after working so hard
Might think that sir, after working so hard I wrote it, yet you had to write only this much.
I wrote it, yet you had to write only this much. So what's the purpose then, I'm just telling you.
So what's the purpose then, I'm just telling you. that you can create functions like this okay
that you can create functions like this okay node.js in hindi so if we see then log
node.js in hindi so if we see then log The function is working now. Tomorrow if I
The function is working now. Tomorrow if I If you want to log any number then I can tell you directly.
If you want to log any number then I can tell you directly. I can, my number is 12 sir and here
I can, my number is 12 sir and here If you look at my generic one, there is one
If you look at my generic one, there is one interesting fact and interesting
interesting fact and interesting The fact is that if we want, we can do this bracket
The fact is that if we want, we can do this bracket You can leave it, I will say it again, this is it
You can leave it, I will say it again, this is it I have to teach, that's why I have to teach, listen.
I have to teach, that's why I have to teach, listen. When writing a function definition, you
When writing a function definition, you It is important to make generic mentions but when you
It is important to make generic mentions but when you When you call it, you will see the value.
When you call it, you will see the value. TypeScript infers that OK
TypeScript infers that OK Its generic will be 12 only then it is of 12 t type
Its generic will be 12 only then it is of 12 t type Yes, I mean I will do it brother, come, okay, but
Yes, I mean I will do it brother, come, okay, but If your soul does not agree then you are here
If your soul does not agree then you are here You can write, brother, okay, you wrote.
You can write, brother, okay, you wrote. Given that the number is our t and the value of well
Given that the number is our t and the value of well t is so t is our number so here which
t is so t is our number so here which The value we will give will be of well type, meaning it
The value we will give will be of well type, meaning it It will be of t type, which means it is 12, which means it
It will be of t type, which means it is 12, which means it I have the number, okay this is the story, sir.
I have the number, okay this is the story, sir. The story about generic functions is good.
The story about generic functions is good. That Takes Us to Be the Generic Interface Same
That Takes Us to Be the Generic Interface Same The story is there too and let's see how it is.
The story is there too and let's see how it is. Let's take it, we made one with love
Let's take it, we made one with love Interface, okay interface, now we have said it sir
Interface, okay interface, now we have said it sir Okay, the interface is ready brother.
Okay, the interface is ready brother. We named it Halwa, okay this is ours
We named it Halwa, okay this is ours Interface is what is a good interface
Interface is what is a good interface You can tell the object by its shape.
You can tell the object by its shape. Color, not color, can be the form of every object
Color, not color, can be the form of every object To show what a form would be, we
To show what a form would be, we You can create the interface, okay?
You can create the interface, okay? We said there would be a string called name and
We said there would be a string called name and There will be a value named name, its type
There will be a value named name, its type The string will be ok and it's named
The string will be ok and it's named The value will be its type, number or name.
The value will be its type, number or name. Now there is a problem, isn't it bro?
Now there is a problem, isn't it bro? You can put anything that you can put string
You can put anything that you can put string Yes, you can keep it like this, brother, this is yours.
Yes, you can keep it like this, brother, this is yours. It could be yours, isn't it?
It could be yours, isn't it? If it is possible then anything can happen now.
If it is possible then anything can happen now. You will think in your mind that friend, we can do this too.
You will think in your mind that friend, we can do this too. You can do this, you can definitely do it
You can do this, you can definitely do it But I am still confused
But I am still confused I don't want to keep that string or
I don't want to keep that string or tap I want to be guaranteed that this is it or
tap I want to be guaranteed that this is it or So either a string or a number, how can
So either a string or a number, how can So here brother, we applied generic
So here brother, we applied generic And here I told my brother in Hindi that T
And here I told my brother in Hindi that T You will keep typing, okay, it's done now sir
You will keep typing, okay, it's done now sir In the future, when we have function ab here
In the future, when we have function ab here Made a CD just a second I'm not sure
Made a CD just a second I'm not sure I just taught you the interface, what syllabus?
I just taught you the interface, what syllabus? Let's see in
Let's see in I tell you
Interface Eye Believe me, I've explained the interface to you.
Believe me, I've explained the interface to you. Very nice okay interesting let's go then
Very nice okay interesting let's go then Now I have created an object and I
Now I have created an object and I Here I am clearly talking about the object
Here I am clearly talking about the object The type is Halwa type, it is fine.
The type is Halwa type, it is fine. What is the type of object, Halwa type
What is the type of object, Halwa type Is
Is And OK object type is Halwa type.
And OK object type is Halwa type. So if I send A B CD from here
So if I send A B CD from here Now just give me a minute to watch, now just watch
Now just give me a minute to watch, now just watch I sent the B CD here, I said.
I sent the B CD here, I said.
Click on any text or timestamp to jump to that moment in the video
Share:
Most transcripts ready in under 5 seconds
One-Click Copy125+ LanguagesSearch ContentJump to Timestamps
Paste YouTube URL
Enter any YouTube video link to get the full transcript
Transcript Extraction Form
Most transcripts ready in under 5 seconds
Get Our Chrome Extension
Get transcripts instantly without leaving YouTube. Install our Chrome extension for one-click access to any video's transcript directly on the watch page.