Javascript examples for Array:Quiz
Use the length property to add a new item to myArray: SQL.
<!DOCTYPE html> <html> <body> <p id="demo"></p> <script> var myArray = ["CSS", "HTML", "Javascript"]; myArray[myArray.length] = "SQL"; document.getElementById("demo").innerHTML = myArray; </script>//from ww w . j a va2 s . c om </body> </html>