how to declare a variable as array in javascript code example Example: javascript declare array var array = []