how declare an array code example Example 1: javascript declare array var array = [] Example 2: how to create an array in javascript let myVar = ["1","2","3"];