1let array = [1,2,3] // makes your array
2array[0] // returns first element of your array.
1let array = ["a", "b", "c", "d", "e"];
2
3// Both first1 and first2 have the same value.
4let [first1] = array;
5let first2 = array[0];
1let mylist = ['one','two','three','last']
2mylist[0],mylist[1],mylist[2],mylist[3]//this is called indexing and slicing in python
3//in javascript it called getting elements in array