how to create a list within a list in JavaScript code example Example: how to crate a list in java script var list = [1 ,2 ,"apple",true];