Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 32 additions & 6 deletions homework.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.