Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>JavaScript Merge Multiple Arrays</title> </head> <body> <script> let pets = ["Cat", "Dog", "Parrot"]; let wilds = ["Tiger", "Wolf", "Zebra"]; let bugs = ["Ant", "Bee"]; // Creating new array by combining pets, wilds and bugs arrays let animals = pets.concat(wilds, bugs); document.write(animals); // Prints: Cat,Dog,Parrot,Tiger,Wolf,Zebra,Ant,Bee </script> </body> </html>