Arrays- Creating An Array

One way that we can create an array is using array literal syntax. An array literal creates an array by wrapping items in square brackets [ ]. Since arrays can store any data type, we can create arrays that store information that is all of the same data type or a variety of different data types. Each content item inside an array is known as an element. We can save an array to a variable using the assignment operator. In the following lesson, we will show you how to create an array literal.


  1. Click the play button to watch the video lesson.
  2. Watch the lesson as many times as needed.
  3. Code along with the instructor using the integrated code editor in the center of your screen.
  4. You can use the Run button beneath the code editor to test your code.
  5. Output from the code that you have written will appear in the panel on the right side of your screen.

If you get stuck or need assistance, you can click the button below to connect with a tutor. 

For additional questions or technical support, email