Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function assignProperties(input) {
- let result =`{ ${input[0]}: '${input[1]}', ${input[2]}: '${input[3]}', ${input[4]}: '${input[5]}' }`;
- console.log(result);
- }
- assignProperties(['name', 'Pesho', 'age', '23', 'gender', 'male']);
Advertisement
Add Comment
Please, Sign In to add comment