Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>JavaScript Array Data Type</title> </head> <body> <script> // Creating arrays var colors = ["Red", "Yellow", "Green", "Orange"]; var cities = ["London", "Paris", "New York"]; // Printing array values document.write(colors[0] + "<br>"); // Output: Red document.write(cities[2]); // Output: New York </script> </body> </html>