https://github.com/tanzim-ikram/array-cardio-day-2
Array Cardio 2 is a JavaScript practice project focused on working with array methods such as some(), every(), find(), findIndex(), and splice().
https://github.com/tanzim-ikram/array-cardio-day-2
array every find findindex javascript some splice
Last synced: 11 months ago
JSON representation
Array Cardio 2 is a JavaScript practice project focused on working with array methods such as some(), every(), find(), findIndex(), and splice().
- Host: GitHub
- URL: https://github.com/tanzim-ikram/array-cardio-day-2
- Owner: tanzim-ikram
- Created: 2025-03-07T06:37:15.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-07T09:57:22.000Z (over 1 year ago)
- Last Synced: 2025-04-04T02:17:36.246Z (about 1 year ago)
- Topics: array, every, find, findindex, javascript, some, splice
- Language: HTML
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Array Cardio 2
## Overview
**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.
## Features
- **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.
- **Finding and Filtering Data:**
- Use `find()` to locate a specific comment by ID.
- Use `findIndex()` to locate a comment by ID and remove it using `splice()`.
- **Console Output:**
- All results are logged to the browser console for easy debugging and understanding.
## Technologies Used
- HTML
- JavaScript (ES6)
## How to Use
1. Clone or download the repository.
2. Open `index.html` in a web browser.
3. Open the **JavaScript Console** (Press `F12` or `Ctrl + Shift + I` and navigate to the **Console** tab).
4. Observe the logged results as different array methods are executed.
## Learning Outcomes
This project provides hands-on experience with:
- Using array iteration methods in JavaScript.
- Understanding how `some()`, `every()`, `find()`, `findIndex()`, and `splice()` work.
- Manipulating array data effectively.