1
00:00:00,840 --> 00:00:03,250
Let's see how I'm going to solve this challenge.

2
00:00:03,270 --> 00:00:06,420
Pretty simple, as you may think.

3
00:00:06,930 --> 00:00:13,290
So solution to this challenge is slicing a strength method.

4
00:00:13,290 --> 00:00:22,050
So I'm going to use function, expression, slice, string equal to my function.

5
00:00:22,420 --> 00:00:23,970
And now here we go.

6
00:00:24,760 --> 00:00:27,430
I'll pass in the string I want to slice.

7
00:00:27,430 --> 00:00:34,210
That is SDR for my string and then the number as my starting point or my ending point I want to slice.

8
00:00:34,540 --> 00:00:43,480
So here return and then the string I'll pass in dot slice, then start from zero, then end at where

9
00:00:43,480 --> 00:00:44,740
I want to slice to.

10
00:00:44,770 --> 00:00:46,570
That's my number here.

11
00:00:46,960 --> 00:00:48,640
So that is it about that.

12
00:00:48,880 --> 00:00:51,700
So here let's call the function.

13
00:00:51,700 --> 00:00:59,820
So const let's say the answer is equal to SLI string or parsing the text I want to slice.

14
00:00:59,830 --> 00:01:01,450
Let's say hello world.

15
00:01:02,780 --> 00:01:08,390
And now I want to remove, let's say five get only slice out of five.

16
00:01:08,780 --> 00:01:15,440
So here it comes to that look, the console that look the answer here and now.

17
00:01:15,440 --> 00:01:17,090
Let me remove this one here.

18
00:01:17,690 --> 00:01:19,190
Now I have hello.

19
00:01:19,190 --> 00:01:28,180
Because I have sliced form from zero up to five from zero, just zero one, two, three, four, five.

20
00:01:28,190 --> 00:01:35,360
So I get hello I can slice up to let's say ten and then I get all I have, remove everything from that,

21
00:01:35,410 --> 00:01:39,320
have sliced everything here by getting all that slice for you.

