Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Section 1:
- 1. ages.map(function (num) { return num * 2 }
- 2. ages.map(function (num) { return num * 2 }).filter(function (num) { if (num < 65) {return num}})
- 3. ages.map(function (num) { return 'Age is: ' + num})
- Section 2:
- 1.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement