Question: I have data like this:

```
data = [
         { 'name':'suresh', 'age':25}
         { 'name':'ramesh', 'age':35}
         { 'name':'raina', 'age':15}

      ]

```

I have tried like 

```
  for(let ele in data){
     consolelog(ele)
   }

```

**Current Output**

```
 0
 1
 2

```

**Expected Output**

```
     { 'name':'suresh', 'age':25}
     { 'name':'ramesh', 'age':35}
     { 'name':'raina', 'age':15}

```

Answer: 
You have to use the `of` keyword for looping arrays

```
 for(let ele of data){
    console.log(ele)
 }

```
Try this code this work for me

`for (let ele in data) {
 console.log(data[ele])
}`