Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript concat

const num1 = [2, 4, 5, 3, 8, 9, 11, 33, 44];
const num2 = [22, 33, 44, 55, 66, 77, 88];

const concatNumbers = num1.concat(num2)
console.log(concatNumbers)
//Expected output:
/*[
2, 4, 5, 3, 8, 9,
    11, 33, 44, 22, 33, 44,
    55, 66, 77, 88
 ]
*/
Source by dev.to #
 
PREVIOUS NEXT
Tagged: #javascript #concat
ADD COMMENT
Topic
Name
3+4 =