Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Join Multiple Arrays in JavaScript</title> <script> // Sample arrays var array1 = [1, 2, 3]; var array2 = [4, 5, 6]; var array3 = [7, 8, 9]; // Concatenating the arrays var result = array1.concat(array2, array3); document.write(JSON. stringify(result)); </script> </head> <body style="font-family: monospace;"> <!-- Result array will be printed here --> </body> </html>