Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const nums = [ 1, 2, 3, 4, 5]
- const nums2 = [6, 7, 8, 9]
- console.log(nums.concat(nums2))
- const filhas = ['Oilson', 'Dillan']
- const filhos = ['Clinton', 'Djalma']
- const todos = filhas.concat(filhos)
- console.log(filhas, filhas, todos )
- console.log([].concat([10, 20, 30, 40, 50], [60, 70, 80]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement