Let us continue with the events Laysan and Herea will be talking about how you can integrate Frieza
import, how you can put Free's import a parameter in your function.
For example, we have here increased press Hindawi.
And I'm going to say, for example, I'm going to edit the parameter here and wait to say, for example,
price like.
I'm going to say for his import price, I'm going to say price ends here.
I'm going to remove this cancer log, OK?
And this hour, it's about a box.
Let us remove parties, OK, and here I have a perimeter here, and in order to use this perimeter,
make sure to ensure, first of all, we are going to say, for example, Consolo like a.
The price to increase.
Is Paris like this, depressed to increase its price and here we have the first rate is when you call
your function, for example, as you can see, we are calling our function here in this baton when we
when we say this does increase pressure and.
Right.
We are calling our function here.
And if you want to put your parameter here, to call your parameter here of your function, to put the
value of your parameter once you call your function, the first rate is to by using Dume Gyro function.
OK, make sure to integrate to use your function.
And here you can put the very phrase, the import of your parameter.
OK, if you don't want to have a response, thus when your page is reloaded, ok, make sure to call
your error function.
And here is you can see we have called it our function here and we have put the value of our price parameter,
which is then five thousand.
And we are going to display this console like depressed to increase its price.
OK, if I try to make here and also click on Price, as you can see, a hefty price increase is five
thousand.
And the second way is to use the band function.
OK, what is the brain function?
Just remove your error function.
You are going to say these dots increase price and level and here you're going to say Dods.
Bynes called the brain function and demand function as two parameters, the first parameter is the key
with this Lexus and the second parameter is the parameter that you have in your function here.
For example, in our case, we have put a five thousandths.
And once they try to make sure and I click on increased press, I'm going to get the same thing so you
can use the arrow function or you can use the bounce function.
OK, so it is very simple, very easy.
So let us begin with our error function, because in this cars, we are going to be using always the
Durer function and now later Swicord with events.
OK, we are going to say, for example, Consolo we are going to put for is important event parameter
here.
We can say events like hearing we set event and once I tried for example, to make sure and click on
this button, did say is true view on our Inari concert, this parameter.
Even so, let us make here Willott click on events you're going to see events is undefined.
So, uh, how to display this event because we have this button, OK, our desire is to display every
day all events we have.
Once we clicked, for example.
OK, because when we click, it is anything.
So this is who gets all these events.
And here I'm going to say events event is like an object, as you can see.
And every time we click, for example, it is is to display every properties we can get from this event
objects.
OK, make sure to pass events as parameter in your error function.
OK.
Here, we cannot say or events like this, and once we make sure and just click on.
Increased press, and you're going to see we are going to have all properties about the events, objects
like you're going to see we have everything we baton through.
OK, and we have something here.
We have a target.
So keep this in your mind.
We are going to track these parts in the future.
We have some things.
Somethin's.
Like Target.
OK, we have Target something else targets disabled Dragonball, as you can see here, we have targets
on click on teams.
We have different targets.
And if you try to count, for example, here and writes a dot target Slidell's picture.
Click here.
She is.
Targets.
OK, so if we try to say Lord.
Targets like this, let us switch back here and click on price increase price.
Let us record first and click on Price, and you're going to see you're going to take these elements
when you say events, dot targets, OK, we are going to take this baton and there are you going to
see you have your price.
OK, just keep this notion this in your minds.
We are going to take all these parts in the future.
I know what I want to anticipate to show you this.
You are going to see it will be very important in the future.
OK, when you say even the targets, you're going to really take your elements, which is the baton
and you're going to see everything you have here.
So keep it your mind.
We are going to be using these targets in the future.
And are we going to continue what's regional then we are going to see hurricane update, for example,
this prices once we click, for example, on increased prices.
OK, so let us back our viewers to your codes.
We are going to remove these consoles like, OK, or remove also this parameter here.
We've moved events.
So the D.A. is also click increase on the spot, so to increase the price.
OK, so here we are going to be talking about the immutability condition.
OK.
The impeachability condition, so rosignol, the very freeways think.
We are going to update on the price difference for a of our states, OK, my cars and what we're going
to do if you want to respect to this condition.
The immutability condition, the first thing you need is to make just a copy is to copy your in our
case, which is my car's our data, which is in our states, my cars.
You need to make a copy of your.
Your your data.
For example, our case, which is my cousin, it is does it say you are going to make Facebook a copy
of my cast and that and once you have this copy, you are going to bring you update your your updates.
You are going to bring you are going to put your updates in your copy.
And after that, you are going to use the sets that function and take your copy in which you have the
updated and as you say, update it in your and my cousin, which is your.
Your data, so it is your state, OK, because we have the the immutability conditions, right, you
say you cannot and update's directly a state which is a debtor.
It is in your states.
OK, a, you must always use the state state function and before using the state this function next
year for Israel to copy your data and update your copy and you're going to take this copy that you have
updated and you are going to assign it in your data, which is in search of your states.
So what I mean by this, it is very simple.
You are going to understand if you want to respect immutability condition, the first thing is to make
a copy.
I'm going to make some comments here, OK?
We are going to copy your state, OK, your state in our case, we have Mike Castle here.
My castle make sure to.
And we are going to create a Constancia, we are going to say Konstanz is going constant, is going
to be a new car, OK, a new cars and cars like this, because we want to increase each paresis each
for us.
And you are going to say these dots.
States that make cars, they can't make cars, which is our state here, which is our data in our states,
my cars, and you're going to call the Davis credit function, which is like, OK, if you want to copy
your data, for example, which is my cars, it is a table call dysfunction.
That means you have capitán.
That means you have Kopit.
You have copied all my cards table and you have assigned it in your new cars, which is a constant,
you're OK and do not try to do like this because do not try to do like this, because if you do like
this, it is not a copy, but it is just a reference of your states.
OK, make sure to put dots if you want to respect the image in image immutability condition in Regius.
OK, after making your copy they think you're going to do here is to take your copy, which is new cars.
And he.