Skip to main content

Posts

Showing posts from April, 2023

Manipulating Arrays in Javascript

Only managed a few minutes today. Some javascript learning at FreeCodeCamp.com on manipulating arrays. I assume there are many, and that these are the most basic (or commonly used?): .push()     //  appends one or more new elements to the end of an array and returns the new length of the array. .pop()     //  deletes the last element of an array, decrements the array length, and returns the value that it removed. .unshift()     // adds an element to the beginning of the array, shifts the existing array elements up, and returns the new length of the array. . shift()     // removes and returns the first element of the array, shifting subsequent elements down to vacant space. #100daysofcode #carlacodes #codingjourney #day3