how to create an array in js and initial it code example Example: how to initialize an array in javascript var array_name = [item1, item2, ...];