Array Cardio 2 is a JavaScript practice project focused on working with array methods such as some()
, every()
, find()
, findIndex()
, and splice()
. The project logs outputs to the browser console, demonstrating various operations on arrays of people and comments.
- Checking Conditions on Arrays:
- Use
some()
to check if at least one person is 19 or older. - Use
every()
to check if all people are 19 or older.
- Use
- Finding and Filtering Data:
- Use
find()
to locate a specific comment by ID. - Use
findIndex()
to locate a comment by ID and remove it usingsplice()
.
- Use
- Console Output:
- All results are logged to the browser console for easy debugging and understanding.
- HTML
- JavaScript (ES6)
- Clone or download the repository.
- Open
index.html
in a web browser. - Open the JavaScript Console (Press
F12
orCtrl + Shift + I
and navigate to the Console tab). - Observe the logged results as different array methods are executed.
This project provides hands-on experience with:
- Using array iteration methods in JavaScript.
- Understanding how
some()
,every()
,find()
,findIndex()
, andsplice()
work. - Manipulating array data effectively.