Welcome back, guys, to another lecture today.
We're going to talk about JavaScript, iOS seven, which was introduced in 2016.
So it's very easy to understand and grasp.
The reason is that because Aliki is six, which had a ton of new features coming from year five this
year, seven has only two new concepts that you need to understand.
And actually we don't need the text editor to do this.
So iOS seven has only two new concepts.
The first one is includes so these that includes method in this can work both on the race and strings.
So I'm going to create Sprink here and I'm going to say the my name is Rick.
Hello.
My name is Rick.
What is your name and question mark.
So I can run includes here and I can try for example, finding if it's hello.
So this will actually give me boolean value, true or false.
Now if I try to search for example, for one, it will give me back false good.
Now let's create let's see how this will work with arrays so I can create const my cards and I will
create this array here and I will say here, Vovo,
Volvo, BMW, what else we have here.
Ford and that's pretty much it.
Now I can run my cars.
That includes in I can find if it's include BMW.
Right.
So it again will return me.
True.
So but I can run B.M. like that so or be only can check for one single letter.
Right.
So I need to check the entire one, the entire here parameter.
Nice.
So that is pretty much what includes does and this is the new edition.
It's a very easy to grasp.
Right.
So this is nothing to do with the way we have done a lot of other things and everything stays.
See, now the second one is called exponential operator, and it's very simple to use and very simple
to understand.
So let's create a function call here.
Const exp function in here.
I will pass in a parameter here X and I'm going to create array function, erro function and I will
say X.
I use these two stars here and what it this will do for example.
Now if I pass into this function, into this parameter here value, let me just show you, I'm going
to say E.S.P exponential function and if I pass two then it will give me it will give me the square
of that number.
Right.
So it will be four.
Let's clear this one out.
So yes.
And I will see for now it will be 16.
If I say five, it will be twenty five.
So I'm getting the exponential operator in here.
I can use it on some functions or calculations that I need.
So that was two functions that we have done it.
So the first one was includes it can work on the strings in arrays and the other one is the exponential
operator so we can write a function like this.
So if I hit it now, it will see an error re declaration.
Right.
So I need to make it like this.
And now I can still run the function because still it runs inside the memory o k.
That is pretty much it.
And I wish you good day and I will see you in the next one.