Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function properties([firstKey, firstValue, secondKey, secondValue, thirdKey, thirdValue]) {
- return {
- [firstKey]: firstValue,
- [secondKey]: secondValue,
- [thirdKey]: thirdValue
- };
- }
- console.log(properties(['name', 'Pesho', 'age', '23', 'gender', 'male']));
- console.log(properties(['ssid', '90127461', 'status', 'admin', 'expires', '600']));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement