diff --git a/homework.md b/homework.md index f7a8449..e750dc4 100644 --- a/homework.md +++ b/homework.md @@ -2,24 +2,40 @@ ## 1. What is 2 + 2? -5 +4 ## 2. What is JavaScript? -An exciting new play about coffee. +JavaScript is a high-level, interpreted programming language that is primarily used to create dynamic and interactive features on websites. It is one of the core technologies of the web, alongside HTML and CSS. ## 3. What three problems does Git & GitHub solve? - -When people want to show off code to each other they can put it on GitHub - +Version Control + Without version control, it’s hard to keep track of changes in code. Developers risk overwriting each other’s work, losing progress, or not being able to undo mistakes. + How Git/GitHub solve it: + Git tracks every change made to your codebase. + You can view history, compare versions, and revert to earlier states. + Changes are organized into commits and branches, making it easy to experiment without breaking the main code. +Collaboration + Working on a team without a system to coordinate changes leads to confusion, duplicated work, and conflicts. + Backup & Hosting + How GitHub solves it: + Teams can work on the same project in parallel using branches and pull requests. + lps review, discuss, and merge code changes. + Contributors can suggest changes without direct access to the main project (via forks and pull requests). +Backup & Hosting + Code stored only on one developer’s machine can be lost if the computer crashes or is stolen. + How GitHub solves it: + GitHub stores your code in the cloud, making it safely accessible from anywhere. + You can clone the repository on any machine and continue working. + GitHub also integrates with CI/CD tools, project boards, and issue tracking. ## 4. What happens when you `fork` a repository? -You delete it +When you fork a repository on GitHub, you're creating your own personal copy of someone else's project under your GitHub account. ## 5. What happens when you clone a repository? -It send it to a friend +When you clone a repository using Git, you are downloading a full copy of the project from a remote server (like GitHub) to your local machine. ## 6. What is a Pull Request? -When you send a file over the internet +A Pull Request (PR) is a way to propose changes to a codebase in Git-based collaboration platforms like GitHub, GitLab, or Bitbucket.