Guest User

Untitled

a guest
Sep 27th, 2021
81
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let input = ['2, 3, 1',
  2. '5, 2, 3'];
  3.  
  4. let print = this.print || console.log;
  5. let gets = this.gets || ((arr, index) => () => arr[index++])(input, 0);
  6. let arr = gets().split(', ');
  7.  
  8. let arrTwo = gets().split(', ');
  9.  
  10.  
  11. let arrFinal = [];
  12. for(let i = 0; i < arr.length; i++){
  13. arrFinal.push(arr[i], arrTwo[i]);
  14. }
  15.  
  16. print(arrFinal.join(','));
  17.  
  18.  
RAW Paste Data