Merge pull request #3181 from mukulkandhari/patch-2

Update task.md | Fix grammar
This commit is contained in:
Ilya Kantor 2022-09-20 13:58:13 +02:00 committed by GitHub
commit 42b7197764
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,7 +8,7 @@ Let's try 5 array operations.
1. Create an array `styles` with items "Jazz" and "Blues". 1. Create an array `styles` with items "Jazz" and "Blues".
2. Append "Rock-n-Roll" to the end. 2. Append "Rock-n-Roll" to the end.
3. Replace the value in the middle by "Classics". Your code for finding the middle value should work for any arrays with odd length. 3. Replace the value in the middle with "Classics". Your code for finding the middle value should work for any arrays with odd length.
4. Strip off the first value of the array and show it. 4. Strip off the first value of the array and show it.
5. Prepend `Rap` and `Reggae` to the array. 5. Prepend `Rap` and `Reggae` to the array.