diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 0000000..9b0a2be --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,29 @@ +# πŸ“œ Code of Conduct + +## Our Pledge 🀝 + +We as members, contributors, and leaders pledge to make participation in our project a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation. + +## Our Standards 🌈 + +Examples of behavior that contributes to creating a positive environment include: + +- Using welcoming and inclusive language 🌍 +- Being respectful of differing viewpoints and experiences πŸ’¬ +- Gracefully accepting constructive criticism πŸ™ +- Focusing on what is best for the community 🏘️ +- Showing empathy towards other community members ❀️ + +## Our Responsibilities πŸ› οΈ + +Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. + +## Scope πŸ” + +This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. + +## Enforcement βš–οΈ + +Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project maintainers. All complaints will be reviewed and investigated promptly and fairly. + +We thank you for helping us create a welcoming environment! 🌟 diff --git a/CONTRIBUTION.md b/CONTRIBUTION.md new file mode 100644 index 0000000..7ae77b2 --- /dev/null +++ b/CONTRIBUTION.md @@ -0,0 +1,39 @@ +# 🀝 Contributing to 3D Bricks Slider Game + +Thank you for your interest in contributing to the **Basic JavaSript Programs**! We appreciate your help in making this project better. πŸ’ͺ + +## πŸ“š How to Contribute + +1. **Fork the Repository** 🍴 + - Click on the "Fork" button at the top right of the repository page. + +2. **Clone Your Fork** +`git clone https://github.com/mmabiaa/basic-javascript-program.git` + + +3. **Create a New Branch** 🌿 +`git checkout -b feature/YourFeatureName` + + +4. **Make Changes** ✏️ +- Implement your feature or fix a bug. + +5. **Commit Your Changes** πŸ’Ύ +`git commit -m "Add your commit message here"` + + +6. **Push Your Changes** πŸš€ +`git push origin feature/YourFeatureName` + + +7. **Create a Pull Request** πŸ”„ +- Go to the original repository and click on "New Pull Request." + +## πŸ“ Guidelines + +- Ensure your code adheres to our coding standards. +- Write clear, concise commit messages. +- Update documentation as needed. +- Test your changes thoroughly before submitting a pull request. + +Thank you for contributing! 🌟 diff --git a/README.md b/README.md index f6be8f8..d8bfbf4 100644 --- a/README.md +++ b/README.md @@ -27,5 +27,49 @@ Welcome to the **Basic JavaScript Programs** repository! This collection contain To get started with the Basic JavaScript Programs, follow these steps: 1. Clone the repository: - ```bash - git clone https://github.com/mmabiaa/Basic-JavaScript-Programs.git +`git clone https://github.com/mmabiaa/Basic-JavaScript-Programs.git` + + +2. Navigate to the project directory: +`cd Basic-JavaScript-Programs` + + +3. Open the HTML files in your preferred web browser or use a code editor with a live server extension. + +## Usage + +Each program is contained within its own file. You can run any of the JavaScript files by including them in an HTML document or executing them in a JavaScript console. Here’s how you can include a JavaScript file in an HTML document: +``` + JavaScript Program

Welcome to My JavaScript Program

+``` +## Examples +Here are a few examples of what you can find in this repository: + +Hello World: A simple program that prints "Hello, World!" to the console. +``` +console.log("Hello, World!"); +Factorial Calculation: A function that calculates the factorial of a number. +text +function factorial(n) { + if (n === 0) return 1; + return n * factorial(n - 1); +} +console.log(factorial(5)); // Output: 120 +``` + +Array Manipulation: Demonstrating how to add, remove, and iterate through arrays. +``` +let fruits = ['apple', 'banana', 'orange']; +fruits.push('grape'); // Add an element +fruits.splice(1, 1); // Remove 'banana' + +fruits.forEach(fruit => { + console.log(fruit); +}); +``` + +## Contributing +Contributions are welcome! If you have suggestions for improvements or new programs to add, please [view CONTRIBUTION FILE](CONTRIBUTION.md). + +## License +This project is licensed under the MIT License - see the [LICENSE file](LINCENSE.md) for details.