Let's see how I'm going to solve this challenge.
Pretty simple, as you may think.
So solution to this challenge is slicing a strength method.
So I'm going to use function, expression, slice, string equal to my function.
And now here we go.
I'll pass in the string I want to slice.
That is SDR for my string and then the number as my starting point or my ending point I want to slice.
So here return and then the string I'll pass in dot slice, then start from zero, then end at where
I want to slice to.
That's my number here.
So that is it about that.
So here let's call the function.
So const let's say the answer is equal to SLI string or parsing the text I want to slice.
Let's say hello world.
And now I want to remove, let's say five get only slice out of five.
So here it comes to that look, the console that look the answer here and now.
Let me remove this one here.
Now I have hello.
Because I have sliced form from zero up to five from zero, just zero one, two, three, four, five.
So I get hello I can slice up to let's say ten and then I get all I have, remove everything from that,
have sliced everything here by getting all that slice for you.