Array.classPrototype.readOperator
- Instance of
- Parameters
-
position /*Number*/
- Return value
-
/*Object*/
Description
Read operator (arrayInstance[position]
) returns element at given position. Negative indicies can be used, and count from the end of the array. Not to be confused with static method Array.readOperator
.
Example
let arr = [36.6, "Harry", true];
console.write(arr[1]);
Expected output
Harry