Summary
In this chapter, we covered the most-used data structure: arrays. We learned how to declare, initialize, and assign values as well as add and remove elements. We learned about two-dimensional and multi-dimensional arrays as well as the main methods of an array, which will be particularly useful when we start creating our own algorithms in later chapters.
We also learned how to make sure the array only contains values of the same type by using TypeScript or the TypeScript compile-time checking capability for JavaScript files.
And finally, we resolved a few exercises that can be the topic of technical interviews and reviewed their complexity.
In the next chapter, we will learn about stacks, which can be treated as arrays with a special behavior.