Creating an array
In this exercise, you will practice building and accessing key properties of an array. Understanding what key properties are built in to Bash is important for fully utilizing arrays. For example, when iterating through arrays, knowing their length is very handy. Similarly, knowing how to easily return all array elements is also important for looping and also for checking your work and printing.
In this exercise, you will firstly build an array using two different methods and then access the length of the array. You will then return the entire array using a different special property.
이 연습은 강의의 일부입니다
Introduction to Bash Scripting
실습형 인터랙티브 연습
이 예제를 이 샘플 코드를 완성하여 풀어보세요.
# Create a normal array with the mentioned elements
capital_cities=____