get array from var in javascript function code example Example: javascript declare array var array = []