# list comprehension
Python
```python
myListCompr = [item for item in mylist]
```
JavaScript
```js
var myListCompr = list.forEach(el => el)
```
or
```js
var myListCompr = list.map(function(el){return el})
```
# enumerate
Python
```python
for myEnum, index in enumerate(list):
# do stuff
```
JavaScript
```js
list.forEach(el, index){}
```