Welcome to your JavaScript classwork repository! This project contains three tasks to help you practice Arrays & Array Methods, Object-Oriented Programming (OOP), and Error Handling using try-catch in JavaScript.
You will work on the following tasks:
- Arrays & Array Methods: Working with arrays and using built-in array methods like
.map(),.reduce(), and.filter(). - Object-Oriented Programming (OOP): Creating a class, adding methods, and understanding basic OOP concepts.
- Error Handling: Using try and catch for error handling in a function that divides numbers.
- Click on the Fork button in the top right corner of this page to create your own copy of this repository.
- After forking, clone the repository to your local machine or work directly from GitHub.
- Complete the following tasks:
- Task 1: Arrays & Array Methods - Modify and manipulate arrays using various methods like
.map(),.reduce(), etc. - Task 2: Object-Oriented Programming - Create a Car class with properties and methods.
- Task 3: Error Handling - Implement try-catch to handle errors in a function.
- Task 1: Arrays & Array Methods - Modify and manipulate arrays using various methods like
Your repository should contain the following files:
arrays_methods/task1.js(Arrays & Array Methods task)oop/task2.js(Object-Oriented Programming task)error_handling/task3.js(Error Handling task)README.md(This file with task instructions)
Make sure to test your functions and methods with various inputs to ensure your code works as expected.
Once you've completed all the tasks and pushed your changes to your forked GitHub repository:
- Go to the original repository (the one you forked from).
- Click on the Pull Request tab.
- Click on the New Pull Request button.
- Provide a title and description for your PR (e.g., "Complete JavaScript classwork").
- Submit the pull request to the main branch of the original repository.
After creating the PR, submit the GitHub PR URL via the Google Form provided by your instructor.