diff --git a/homework.md b/homework.md index 1a8a59b2..27745a46 100644 --- a/homework.md +++ b/homework.md @@ -2,24 +2,50 @@ ## 1. What is 2 + 2? -5 +4 ## 2. What is JavaScript? -An exciting new play about coffee. +JavaScript is a versatile, high-level programming language used to create dynamic and interactive content on the web. ## 3. Name three problems Git & GitHub solve? -When people want to show off code to each other they can put it on GitHub +1. Tracking changes to code. + Developers often create many copies of files. + Git solves this by keeping a full history of changes. + +Now Git remembers: +a) what changed +b) when it changed +c) who changed it + +You can also go back to older versions if something breaks. + +2. Collaboration between developers. + Without GitHub, multiple people editing the same files can overwrite each other's work. + GitHub allows developers to: + a) work on separate branches + b) ombine changes safely + c) review code before merging + +This prevents chaos in team projects. + +3. Backup and remote storage. + Git stores code locally, but GitHub stores it online. + +This solves problems like: +a) computer failure +b) lost files +c) sharing projects across devices ## 4. What happens when you `fork` a repository? -You delete it +Forking a repository means making a personal, server-side copy of a project (hosted on platforms like GitHub or GitLab) under your own account. It gives you a safe, independent sandbox to experiment with code changes or build upon the project without altering the original codebase. ## 5. What happens when you clone a repository? -It send it to a friend +When you clone a repository, you copy the repository from GitHub.com to your local machine or to a remote virtual machine. ## 6. What is a Pull Request? -When you send a file over the internet +A pull request (PR) is a proposal to merge code changes into a main software project. It allows developers to notify team members of completed work, discuss proposed changes, and review the code for bugs or improvements before integrating it into the main project.