Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Challenge: Modifying Arrays | Arrays
course content

Course Content

Introduction to TypeScript

Challenge: Modifying ArraysChallenge: Modifying Arrays

Task

You are given two arrays. Your task is to remove the first and last elements from each of the arrays and then display the combined array on the screen. Use the methods we learned in this section. If you have difficulty understanding the task, you can use the Hint and Solution buttons to view and analyze the solution.
This way, you'll grasp the information better.

1. Replace the blank spaces (___) with the corresponding methods that will perform the required action.
2. The comments indicate which method to use.
3. In the end, you need to combine two arrays using the appropriate method.
4. You can see the list of methods and how to use them in this chapter.

Everything was clear?

Section 3. Chapter 4
course content

Course Content

Introduction to TypeScript

Challenge: Modifying ArraysChallenge: Modifying Arrays

Task

You are given two arrays. Your task is to remove the first and last elements from each of the arrays and then display the combined array on the screen. Use the methods we learned in this section. If you have difficulty understanding the task, you can use the Hint and Solution buttons to view and analyze the solution.
This way, you'll grasp the information better.

1. Replace the blank spaces (___) with the corresponding methods that will perform the required action.
2. The comments indicate which method to use.
3. In the end, you need to combine two arrays using the appropriate method.
4. You can see the list of methods and how to use them in this chapter.

Everything was clear?

Section 3. Chapter 4
some-alt