1 00:00:01,320 --> 00:00:03,100 Welcome back, guys, to another lecture today. 2 00:00:03,120 --> 00:00:06,900 We're going to talk about JavaScript, iOS seven, which was introduced in 2016. 3 00:00:07,110 --> 00:00:08,980 So it's very easy to understand and grasp. 4 00:00:09,480 --> 00:00:16,470 The reason is that because Aliki is six, which had a ton of new features coming from year five this 5 00:00:16,470 --> 00:00:20,640 year, seven has only two new concepts that you need to understand. 6 00:00:21,810 --> 00:00:24,690 And actually we don't need the text editor to do this. 7 00:00:24,690 --> 00:00:27,090 So iOS seven has only two new concepts. 8 00:00:28,440 --> 00:00:36,630 The first one is includes so these that includes method in this can work both on the race and strings. 9 00:00:36,750 --> 00:00:41,060 So I'm going to create Sprink here and I'm going to say the my name is Rick. 10 00:00:41,070 --> 00:00:41,430 Hello. 11 00:00:42,540 --> 00:00:44,280 My name is Rick. 12 00:00:45,060 --> 00:00:48,690 What is your name and question mark. 13 00:00:48,700 --> 00:00:54,870 So I can run includes here and I can try for example, finding if it's hello. 14 00:00:55,060 --> 00:00:58,720 So this will actually give me boolean value, true or false. 15 00:00:59,160 --> 00:01:04,380 Now if I try to search for example, for one, it will give me back false good. 16 00:01:05,070 --> 00:01:13,500 Now let's create let's see how this will work with arrays so I can create const my cards and I will 17 00:01:13,500 --> 00:01:16,260 create this array here and I will say here, Vovo, 18 00:01:18,940 --> 00:01:23,280 Volvo, BMW, what else we have here. 19 00:01:23,280 --> 00:01:27,000 Ford and that's pretty much it. 20 00:01:27,220 --> 00:01:29,250 Now I can run my cars. 21 00:01:30,240 --> 00:01:35,400 That includes in I can find if it's include BMW. 22 00:01:35,400 --> 00:01:35,730 Right. 23 00:01:36,690 --> 00:01:38,820 So it again will return me. 24 00:01:38,820 --> 00:01:39,230 True. 25 00:01:39,550 --> 00:01:47,450 So but I can run B.M. like that so or be only can check for one single letter. 26 00:01:47,460 --> 00:01:47,730 Right. 27 00:01:47,750 --> 00:01:51,950 So I need to check the entire one, the entire here parameter. 28 00:01:52,440 --> 00:01:52,880 Nice. 29 00:01:52,920 --> 00:01:57,840 So that is pretty much what includes does and this is the new edition. 30 00:01:57,850 --> 00:01:59,280 It's a very easy to grasp. 31 00:01:59,280 --> 00:01:59,630 Right. 32 00:01:59,970 --> 00:02:04,760 So this is nothing to do with the way we have done a lot of other things and everything stays. 33 00:02:04,770 --> 00:02:11,880 See, now the second one is called exponential operator, and it's very simple to use and very simple 34 00:02:11,880 --> 00:02:12,610 to understand. 35 00:02:12,840 --> 00:02:15,510 So let's create a function call here. 36 00:02:16,590 --> 00:02:22,260 Const exp function in here. 37 00:02:22,260 --> 00:02:30,360 I will pass in a parameter here X and I'm going to create array function, erro function and I will 38 00:02:30,360 --> 00:02:31,140 say X. 39 00:02:32,100 --> 00:02:37,980 I use these two stars here and what it this will do for example. 40 00:02:37,980 --> 00:02:43,440 Now if I pass into this function, into this parameter here value, let me just show you, I'm going 41 00:02:43,440 --> 00:02:51,150 to say E.S.P exponential function and if I pass two then it will give me it will give me the square 42 00:02:51,150 --> 00:02:51,870 of that number. 43 00:02:51,870 --> 00:02:52,210 Right. 44 00:02:52,800 --> 00:02:54,390 So it will be four. 45 00:02:54,390 --> 00:02:55,760 Let's clear this one out. 46 00:02:56,130 --> 00:02:57,030 So yes. 47 00:02:58,410 --> 00:03:01,280 And I will see for now it will be 16. 48 00:03:01,290 --> 00:03:03,800 If I say five, it will be twenty five. 49 00:03:03,810 --> 00:03:08,130 So I'm getting the exponential operator in here. 50 00:03:08,130 --> 00:03:11,310 I can use it on some functions or calculations that I need. 51 00:03:11,550 --> 00:03:13,970 So that was two functions that we have done it. 52 00:03:14,190 --> 00:03:21,180 So the first one was includes it can work on the strings in arrays and the other one is the exponential 53 00:03:21,180 --> 00:03:24,250 operator so we can write a function like this. 54 00:03:25,200 --> 00:03:27,930 So if I hit it now, it will see an error re declaration. 55 00:03:27,930 --> 00:03:28,210 Right. 56 00:03:28,380 --> 00:03:32,240 So I need to make it like this. 57 00:03:32,290 --> 00:03:37,500 And now I can still run the function because still it runs inside the memory o k. 58 00:03:37,770 --> 00:03:38,760 That is pretty much it. 59 00:03:38,760 --> 00:03:42,300 And I wish you good day and I will see you in the next one.