Day 7: Array cardio 2Β πŸ’ͺ🏽

Array functions learnedΒ today

Array.prototype.some() ❓

This returns true or false if some elements in the array meets the condition

Array.prototype.every() ❓

This returns true or false if every element in the array meets the condition

Array.prototype.find() πŸ”

This returns the first element that meets the given condition

Array.prototype.findIndex() πŸ”

This returns the index of the first element that meets the given condition

Array.prototype.splice() βž–βž•

Removes existing elements and/or adding new elements. Syntax and examples found here

Array.prototype.slice() πŸ”ͺ

Returns a copy of a portion of an array into a new array object selected from begin to end (end not included). Syntax and examples found here

Other functions usedΒ today

new Date()Β πŸ“…

Creates a current date element

getFullYear()

It is a function that can be applied to Dates in order to extract the year

Console.table() ⭐️

This prints a table from an array


Resources πŸ“š

You can follow my 30 projects here and talk with me about my journey: VanillaJS30

Challenges solved in this lesson here πŸ‘Œ

Join to the #Javascript30 challenge created by Wes Bos here: https://javascript30.com/ πŸ’»

Learn more about FLEX: https://flexbox.io/ 🌟