Update README.md
This lab is an opportunity to enhance your JavaScript skills through hands-on practice with array methods forEach, map, find, some/every, and sort().
- On the GitHub page of this repository, click the green "Code" button.
- Copy the URL provided under "Clone with HTTPS".
- Open your terminal and execute:
git clone [paste the URL here] - This command clones the repository to your local machine.
-
Clone the Repository Directly:
- Open your terminal on your local machine.
-
Clone Using Terminal:
- Execute the following command to clone the repository (replace
[paste the URL here]with the URL you provided):git clone https://github.com/CastonPursuit/Lab-Native-Array-Methods-Pt2.git - This command will clone the repository to your local machine.
- Execute the following command to clone the repository (replace
- In your terminal, navigate to the cloned repository's directory:
cd Lab-Native-Array-Methods-Pt2 - Open the project in VS Code by typing:
code . - You will find the
index.jsfile containing 20 problems, each using a different array method.
- Each problem in
index.jsfocuses on practicing a specific array method. - Read the instructions for each problem and try to solve it.
- Use
console.log()within your solutions to output results.
- Test your solutions by running:
node index.js - This command executes your code in
index.js, allowing you to see the output in the terminal.
- To ensure your solutions are correct, use:
npm test - This will run any predefined tests to validate your solutions.
- After solving each problem and verifying your solution, commit your progress:
git add . git commit -m 'Completed problem # using Y method' - Replace
#with the problem number andYwith the array method used.
- Continue working through each problem, running your code, testing, and committing your solutions.
- After completing all the problems, you're ready for the next phase of your learning journey.
- In the upcoming lesson, you'll learn how to push your solutions back to GitHub, sharing your progress and receiving feedback.
- If you find yourself stuck on a problem, don't hesitate to review the MDN Web Docs on Array methods.
- Collaboration is key to learning. Feel free to discuss approaches with your peers or reach out to a coach for guidance.