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

[Snippet] Added code snippet for Greatest Common Divisor in JS #170

Merged
merged 3 commits into from
Jan 4, 2025

Conversation

JanluOfficial
Copy link
Contributor

@JanluOfficial JanluOfficial commented Jan 4, 2025

Description

Added a new category in JavaScript called "Mathematical Functions", as well as a snippet in said category called "Greatest Common Divisor".

Type of Change

  • ✨ New snippet
  • 🛠 Improvement to an existing snippet
  • 🐞 Bug fix
  • 📖 Documentation update
  • 🔧 Other (please describe):

Checklist

  • I have tested my code and verified it works as expected.
  • My code follows the style and contribution guidelines of this project.
  • Comments are added where necessary for clarity.
  • Documentation has been updated (if applicable).
  • There are no new warnings or errors from my changes.

Related Issues

None

Additional Context

GCD (Greatest Common Divisor) finds the largest number that can evenly divide two or more numbers without leaving a remainder.

Screenshots (Optional)

Click to view screenshots

image

@JanluOfficial
Copy link
Contributor Author

JanluOfficial commented Jan 4, 2025

Quickly updated it with more examples since only having one felt a bit lackluster for this function. I'll let reviewers take it from here and ask me to change anything if needed.

Copy link
Collaborator

@Mathys-Gasnier Mathys-Gasnier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A small little puncuation change, but appart from that it looks good

@JanluOfficial
Copy link
Contributor Author

@Mathys-Gasnier will do when I'm home since I also have to re-consulidate

@JanluOfficial
Copy link
Contributor Author

Fixed the punctuation

@majvax majvax added mergeable Reviewed and ready to be merged Snippets labels Jan 4, 2025
@Mathys-Gasnier Mathys-Gasnier merged commit fd8d475 into technoph1le:main Jan 4, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mergeable Reviewed and ready to be merged Snippets
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants