Create an array named myArray, assign the values "CSS", "HTML" and "Javascript" to it, and display it. - Javascript Array

Javascript examples for Array:Quiz

Description

Create an array named myArray, assign the values "CSS", "HTML" and "Javascript" to it, and display it.

Demo Code

ResultView the demo in separate window

<!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>

Related Tutorials