結果 : 4 how does the map method work in javascript