Javascript examples for Array:Quiz
Create an array named myArray, assign the values "CSS", "HTML" and "Javascript" to it, and display it.
<!DOCTYPE html> <html> <body> <p id="demo"></p> <script> var myArray = ["CSS", "HTML", "Javascript"]; document.getElementById("demo").innerHTML = myArray; </script>//from w w w . java 2s. c o m </body> </html>