GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing www.geeksforgeeks.org — JavaScript Array() Constructor - GeeksforGeeks JavaScript Array() ConstructorLast Updated : 23 Jul, 2025 The Array() constructor is used to create Array objects and the array constructor can be called with or without a new keyword, both can create a new Array. Syntax:new Array(Value1, Value2, ...); Parameters:
Example 1: In this example, we will use the basic use of the Array() constructor.
Output: (5) [1, 2, 3, 4, 5] Example 2: In this example, we will use an array with a string value.
Output: 3 We have a complete list of Javascript Array() methods, to check those please go through this JavaScript Array Reference article. Supported Browsers:
Comment Explore |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |