Arrays in Javascript
Explore various JavaScript array operations through practical exercises. Learn to locate, modify, and manipulate array elements, count occurrences, find duplicates, and transform values to strengthen your array handling skills.
We'll cover the following...
Assess your skills
Test your concepts of arrays by determining the location of an item in an array.
Evaluate your concepts by populating an array.
Evaluate yourself by returning a new array after removing all instances of a value from an array.
Evaluate yourself by removing all instances of a value from an array (modify the original array).
Evaluate yourself by adding an item to the end of an array.
Evaluate yourself by removing the last item of an array.
Test yourself by Adding an item at the beginning of an array.
Test yourself by removing the first item of an array.
Test yourself by joining together two arrays.
Test yourself by adding an item anywhere in an array.
Test yourself by counting the occurrences of an item in an array.
Test yourself by finding the duplicates in an array
Test yourself by Squaring each number in an array.
Test yourself by finding all the occurrences of an item in an array.