I want to get the index of an array by position. Is this possible? For example, I want the following function to print:

```
var args = new Array();
args["name"] = "john";
args["surname"] = "smith";

printPerson(args);
function printPerson(args) {

    for(var i = 0; i < args.count; i++) {
        ???
    }
}

```

> 
> "name:john surname:smith"
> 
> 
> 

(ie `name` & `surname` should not be hardcoded inside function)

**EDIT**  

The order they printed out is not important!