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 keys() Method - GeeksforGeeks JavaScript Array keys() MethodLast Updated : 11 Jul, 2025 The Javascript array.keys() method is used to return a new array iterator which contains the keys for each index in the given input array. Syntax: array.keys()Parameters: This method does not accept any parameters. Return Values: It returns a new array iterator. The below example illustrates the Array keys() method in JavaScript: Example 1: In this example, we will see the use of Array.keys() method.
Output: 0 1 2Example 2: In this example, we will see the use of Array.keys() method.
Output: 0 1 2 3We have a complete list of Javascript Array methods, to check those please go through this Javascript Array Complete reference article. Supported Browsers: The browsers supported by the JavaScript Array keys() method are listed below:
We have a Cheat Sheet on Javascript where we covered all the important topics of Javascript to check those please go through Javascript Cheat Sheet-A Basic guide to JavaScript. 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. |