Advertisement
mdamyanova

Assign Properties

Sep 22nd, 2016
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function assignProperties(input) {
  2.     let object = new Object();
  3.     object[input[0]] = input[1];
  4.     object[input[2]] = input[3];
  5.     object[input[4]] = input[5];
  6.     console.log(object)
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement