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