javascript array predefined length code example Example: javascript array predefined length new Array(4);