create new array new class from existing array javascript code example Example: javascript declare array var array = []