From 9b0c5f2ad2e04609a974e119d12aa293b6daade3 Mon Sep 17 00:00:00 2001 From: Enice Date: Wed, 13 May 2026 22:19:12 +0200 Subject: [PATCH] Revise homework answers and explanations Updated answers and explanations for homework questions, including corrections and more detailed descriptions. --- homework.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/homework.md b/homework.md index 1a8a59b2..c8df1815 100644 --- a/homework.md +++ b/homework.md @@ -1,25 +1,26 @@ -# Linus's Homework + # Linus's Homework ## 1. What is 2 + 2? -5 +4 ## 2. What is JavaScript? -An exciting new play about coffee. +JavaScript (JS) is a versatile, high-level programming language that serves as one of the core technologies of the World Wide Web, alongside HTML and CSS ## 3. Name three problems Git & GitHub solve? -When people want to show off code to each other they can put it on GitHub +Losing previous versions of code: Git allows you to track and manage changes over time by creating "commits" (snapshots) of your project. +Overwriting a teammate's work: In a collaborative setting, Git prevents "code collision" by allowing multiple developers to work on different parts of a project simultaneously using branches. +Lack of transparency and coordination: GitHub provides a centralized platform to host code and manage team workflows. It solves coordination issues through features like GitHub Issues for tracking bugs and Pull Requests for reviewing code before it is finalized ## 4. What happens when you `fork` a repository? -You delete it - +Forking a repository creates a personal, server-side copy of a project under your own account, allowing you to freely experiment, modify, or enhance the code without affecting the original "upstream" project. ## 5. What happens when you clone a repository? -It send it to a friend +Cloning a repository creates a complete, local copy of a remote Git project on your computer, including all files, branches, and commit history. ## 6. What is a Pull Request? +A pull request (PR) is a method in version control systems (like Git) where a developer proposes changes—such as new features or bug fixes—to a codebase, requesting that team members review, discuss, and merge them into the main project -When you send a file over the internet