Repo that contains code with intentional bugs for refactoring
This repository contains a simple JavaScript program designed for interns to practice:
- Refactoring redundant code into reusable functions.
- Handling errors using
try/catch. - Applying a structured debugging process using the Debug Ritual.
Click the Fork button at the top right of this repo to create your own copy.
git clone https://github.com/YOUR-USERNAME/REPO-NAME.git
cd REPO-NAME
``
## π§© Your Tasks
### β
Refactor the Code
- Create two functions
- Replace redundant loops with function calls.
---
### π οΈ Add Error Handling
- Wrap main logic in a `try/catch` block.
- Log errors using `console.error()`.
---
### πΎ Commit Your Changes
Use clear and descriptive commit messages.