Javascript Array Quiz
Javascript examples for Array:Quiz
HOME
Javascript
Array
Quiz
Description
Click the following links for the tutorial for Array and Quiz.
Create an array named myArray, assign the values "CSS", "HTML" and "Javascript" to it, and display it.
Display the "HTML" item of the myArray array using the index number
Change the first item of myArray to "SVG" by referring to the index number, and display the whole array.
Use the length property to display the number of array items in myArray.
Use the length property to add a new item to myArray: SQL.
Use the pop() method to remove the last item from the myArray array.
Use the push() method to add a new item to array
Use the splice() method to remove "HTML" and "CSS" from myArray.
Use the sort() method to sort the array alphabetically.
Use the concat() method to concatenate two arrays.