HTML    CSS    PHP    Bootstrap    JavaScript    Dev Tools      

Arrays in JavaScript - Part 2

Current Time  00:00 Total Time  00:00

We are always looking for input on our tutorial content. If you have a suggestion, comment, additional information on this topic that you feel should be added, drop us a line. We appreciate your input.

Title: Arrays in JavaScript - Part 2 Category: JavaScript

Topic: Essential Training Publish Date: 2016-04-02

Views: 240

Author: Mike King


In this tutorial we continue our discussion on Arrays. We demonstrate building an Array using the Constructor method and then we demonstrate how to pull individual items from the array based on the index number. We continue our demonstration by demonstrating how to add values to the beginning of an Array using the unshift method and the end of the array using the push method. We also look at methods to sort arrays using the built in methods in JavaScript. We also demonstrate using the pop method in arrays to remove the last item in an Array. We also demonstrate the shift method in JavaScript which removes a value from the beginning of the Array.