OK, so now what we'll do is we'll add functionality to our input fields right now, whatever we Typekit
is not getting stored anywhere.
So what we'll do is we'll add a function to this input.
You can define the function outside and we can call it ahead while we're giving the on genge function
inside.
Don't change function, but I can do it in line.
Also, that's more convenient, and that is not so much of core that I can activate it outside, so
I'll do it head on.
So it will be on change and inside this, I will be passing a function so that would be event events
and start.
And thought of it or thought, now I will take the text, so I will use text.
They're next.
Well, me and or it are.
And you.
OK, so I'll do the same thing to the amount also like whenever I type any amount, so that amount should
be stored on that.
So I'll call on change.
And inside on June, I will call them friend.
That should be said among.
There shouldn't be event or radar.
Well, you know, this is all about saving.
And.
Happened and the button is already taking the action by one submarine.
So this was an ad transaction.
Let's go to the balance action.
The balance board we have right now is completely hardcoded thing, nothing.
No logic and reason at all.
So that will do.
First of all, let me in for the global context so that we.
Global context, one global state.
All right, next, now what we'll do is we'll add the money for motor function, for this function wheel
and everywhere so that it gives just like decimal values and the positive values like we, we never
want a negative amount of money.
All right.
Or if it's negative, we should just show zero.
So that is what we are going to do now.
And for that, I need to bring it up on function to.
Inside the red zone and this.
Basically, I can create another function for that.
Oh, I'll do it here only, but that will be function.
Function and led me to Australia to comment that the money from.
The money.
But Max.
Function.
Inside missiles at a function function, and the name will be money, not that like small only money
for a man.
Inside the that will be an agreement that will be numb.
So now I will.
Let fee so that fees now start to fixed.
If fixed.
Extra.
Then it will split by doctors like whenever something goes like in so that when you will come out after
the.
Sort of split.
But it would be a dark.
After that.
In a written statement for this function on.
For return, first of all, be warned, there are few on the rupee symbol to get their done, so their
distribution will head.
It is so after the rupee symbol, we'll add some more things which will add up like the and array will
be containing the zero element.
And this is what I'm talking about.
So next we'll start.
Late or.
Let this split, and that will be and like, I'm very sorry, empty string, and then it will be reversed.
That is a function.
No, next will call that reduce.
And it will expect to function, of course, function so that there will be arguments found.
I.
What did you know?
So this is what caused this.
And next, we'll have the read on inside, this would have done well in some ecological too.
And this is a good thing.
OK, so like re equal to means it will it will get it will compare for the value also and the data type
also.
For example, there are two values like 33 33 is an integer.
But if we compare this category with a string of 33, maybe it will show it will show like the but with
the political equals, we will master data type or data types should also be seen.
So that will be like this.
And if this is true or the on will be known loss of.
This I am and I'll explain you everything once once I have done like with this.
For.
The best.
So what we are going to do is now.
And.
Won't just be another one.
I.
More of three, why I'm doing this and going back to on this, for now, there will be a comma.
It's like why we are giving giving.
Come on, this is like ten thousand.
So after ten, we have to give up.
Come on, then three zeros like thirty thousand to three zero comma and then again, three zero.
That is why this comma is dead.
I don't understand.
Next, we have this and.
That said, I guess.
By the time this.
So now what we are going to do is.
We are less.
And this will be added to the account.
And after that, we would have like empty string here and next we'll add it to dark.
Same as I said, like we need to add a thought, if that is if that's going beyond the integer, if
it's getting flawed, so there will be and next we'll have a paragraph like this and it would be off
one.
So that is what we have done.
I hope this completed.
No, but here I left out a comma, so this money for mental village using every component, so that's
I mean, just created once.
Next, we'll be using this and the other components.
Next, what we do with this inside the balance function will air and concert, and this will be all
the transactions transactions.
And though the soon to be introducing the context, basically the global context known on on on the
global context.
Inside this.
And now we had the amount you like, what the amount we have to play.
So that amount will add in the cornerstone and that amount would be amount.
So that's transact for start map now we are mapping the transactions, so.
Transaction that it would be a single transaction.
Then we'll have a federal function and the fact that we don't need actually the clearances for transaction
start.
Amount.
Basically, what amounts so that is what in the next we'll have another concern we could be storing
the total value of the total amount of total would be equal to amount, amount or reduced not to reduce
the like things.
This is the countdown is next.
It's also expected to function, and this is a federal function.
So again, I don't need clear basis and will be gone.
Plus, this would be like added items will be added and then it will be displayed next.
You do this and now when I.
Want to display my amount here, so what I can do is that I order and use my money for motor function.
So I'll call the money for my function.
And each one, so that's going to be money.
Formatter.
Would be toward them.
We told them we're going to save this.
And I see my server up and running.
And there's no no problem so far, things are working quite well.
So now what we will do is we will go back to.