Exercise: String Slicing
Test your knowledge of the slice function.
We'll cover the following
Sort the rows given below based on their titles. Make sure you exclude the header row.
Hint: the
slice
method works in the same way on arrays as on strings.
Solution
First, we get rid of the first row:
Get hands-on with 1200+ tech skills courses.