SHARE
TWEET

Untitled

a guest May 20th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //配列を作成します
  2. var array1 = [[1], [2], [3]];
  3. var array2 = [[4], [5], [6]];
  4.  
  5. //配列を結合します
  6. var newArray = array1.concat(array2);
  7.  
  8. //結果を表示します
  9. console.log(newArray);
  10.  
  11. //console.logの結果
  12. //newArray → [Array(1), Array(1), Array(1), Array(1), Array(1), Array(1)]
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top