Hello can you tell me what is the difference with this two?

this works fine

```
const filteredIntegers = arr.filter((arr) => arr % 1 == 0);
const squaredIntegers = filteredIntegers.map((arr) => Math.pow(arr,2));
```

this does nothing

```
const squaredIntegers = arr.map((arr) => Math.pow(arr.filter((arr) => arr % 1 == 0),2));
```

is there any way to simplify the first one? thank you.