JavaScript Array get key
In this Tutorial we want to describe you a code that help you in understanding JavaScript Array get key. For this we implement JavaScript as Scripting language. We have taken an array that creates and initializes an associative array including different three elements. The elements in this array are addressed using the key strings("R", "I", and "N") instead of an array element number (0, 1, or 2). In the example given below ,array["R"] returns you "ROSE". This provides you to create and use arrays with more different addresses schemas.. The given below code uses for loop to iterate this array..
JavaScript_Array_get_key.html
<html>
|
Output of the program