Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Creating Arrays in JavaScript</title> </head> <body> <script> // Creating variables var colors = ["Red", "Green", "Blue"]; var fruits = ["Apple", "Banana", "Mango", "Orange", "Papaya"]; var cities = ["London", "Paris", "New York"]; var person = ["John", "Wick", 32]; // Printing variable values document.write(colors + "<br>"); document.write(fruits + "<br>"); document.write(cities + "<br>"); document.write(person); </script> </body> </html>