Unknown Identifier 'List'

var myVariable = new List.();

Trying to figure out how to use lists. What am I doing wrong?

Lists don’t exist in javascript, but javascript arrays can get all the same functionality. You should read through this page to choose the best kind of array.

Which Kind Of Array Or Collection Should I Use?

Since you didn’t specify which language you are writing in ( I just assumed due to the dynamic typing ), here is what this would look like in C#:

 List<int> myVariable = new List<int>();