Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function properties([a, b, c, d, e, f]){
- let myObj = {[a]: b, [c]: d, [e]: f};
- console.log(myObj);
- }
- properties(['name', 'Pesho', 'age', '23', 'gender', 'male']);
- properties(['ssid', '90127461', 'status', 'admin', 'expires', '600']);
Add Comment
Please, Sign In to add comment