In this module, we’ll cover:
Git is a version control system that lets you track changes to files and collaborate with others.
GitHub is an online platform to store and collaborate on Git repositories.
main
).README.md
) that explains the project — what it is, how to install/use it, etc.
git init # Start a new Git repository
git add . # Add all files to staging
git commit -m "Message" # Save changes with a message
git push # Upload to GitHub (after setup)
add
→ commit
→ push
Lets make a repository to house all of the session code and make some branches and talk about each one of these definitions and processes
This is going to be a change that I will commit to show how PR's pushes and changes all relate
The Document Object Model (DOM) represents the HTML content of a page as a tree of objects that JavaScript can access and modify.
<h1>Hello</h1> → document.querySelector("h1")
document.getElementById()
document.querySelector()
element.textContent = "New text"
element.style.color = "red"
// HTML CODE
<h1 id="title">Welcome</h1>
// JAVASCRIPT CODE
const title = document.getElementById("title");
title.textContent = "Hello, DOM!";
title.style.color = "blue";
We’re going to build a color picker that updates the entire background color of the page.