Skip to content

icstars/T7A-Functions-Errors-Debugging

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 

Repository files navigation

T7A-Functions-Errors-Debugging

Repo that contains code with intentional bugs for refactoring

Starter Program: Functions & Debugging Practice

πŸ“˜ Overview

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.

πŸš€ Getting Started

1. Fork the Repository

Click the Fork button at the top right of this repo to create your own copy.

2. Clone Your Fork

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.

About

Repo that contains code with intentional bugs for refactoring

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors