Duration: 16 minutes
Summary: In this video we continue our discussion of working with JavaScript arrays. We cover some the important methods that come handy when working with arrays. splice() help us remove and add some elements to the array at once. As the name implies, slice() gives us a slice of the array. We can add arrays to the current array using the concat() function. We can also join array elements with a delimiter passed as a parameter to the join() function. reverse() can put the array elements in reverse order. Finally, we can use array to represent a queue. Queue is a FIFO (First In First Out) data structure, which means that the first element being added is the first element to be removed. WE applied the push function to add elements to the end of the queue, and the unshift function to add elements to the beginning of the queue.
Methodology of the development of example: Good coding standard and simplified design.
Technology Used: JavaScript – Core language Concepts
Keywords: CSS, JavaScript, HTML, function, var, script, document, writeln, splice, slice, concat, join, reverse, push, unshift.