<script> // map fifter var arr = [2,3,4,2,6,1,8]; var res = arr.map(item=>{ return item*2 }) console.log(res) var list = arr.filter(item=>{ return item>3 }) console.log(list) </script>