Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test exercises #507

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Conversation

lian-143
Copy link

Because

This PR

Issue

Closes #XXXXX

Additional Information

Pull Request Requirements

  • I have thoroughly read and understand The Odin Project Contributing Guide
  • The title of this PR follows the location of change: brief description of change format, e.g. 01_helloWorld: Update test cases
  • The Because section summarizes the reason for this PR
  • The This PR section has a bullet point list describing the changes in this PR
  • If this PR addresses an open issue, it is linked in the Issue section
  • If this PR includes any changes that affect the solution of an exercise, I've also updated the solution in the /solutions folder

…fied number of times using loops, avoiding built-in methods like String.prototype.repeat.

Exercise 02 - Repeat String: A function that repeats a string a specified number of times using loops, avoiding built-in methods like String.prototype.repeat.
- Implemented `removeFromArray` function (Exercise 04) to remove specified elements from an array using rest parameters and `Array.prototype.filter()`.
- Implemented `sumAll` function (Exercise 05) to return the sum of integers between two numbers, including error handling for non-integer and negative inputs.
- Passed all tests for both exercises.
For Exercise 06, I learned how to implement a function to check if a year is a leap year by following the rules of divisibility by 4, 100, and 400. I understood that century years need special handling, as they must be divisible by 400 to qualify as leap years.

For Exercise 07, I created two functions to convert between Fahrenheit and Celsius, applying the appropriate temperature conversion formulas. I also learned how to round results to one decimal place using JavaScript's Math.round() method.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant