web dev final

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/238

flashcard set

Earn XP

Description and Tags

i hate my life

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

239 Terms

1
New cards

URL Protocol

Specifies the communication rules (http or https) used between client and server

2
New cards

URL Hostname

The human-readable domain name that identifies the server

3
New cards

URL Port

The numeric channel used for communication (80 for HTTP

4
New cards

URL Path

The specific resource or page requested from the server

5
New cards

Hostname

A domain name that maps to an IP address via DNS

6
New cards

IP Address

A numeric address (IPv4 or IPv6) used by routers to deliver packets

7
New cards

Packet Route

The sequence of network hops a packet takes to reach a destination

8
New cards

Registrar

A company that rents domains and manages DNS for those domains

9
New cards

A Record

DNS record that maps a hostname to an IPv4 address

10
New cards

AAAA Record

DNS record that maps a hostname to an IPv6 address

11
New cards

Why IPv4 Is Needed

IPv6 is not widely supported so servers still need IPv4 for accessibility

12
New cards

Domain Cost

Domains typically cost $5–20 per year

13
New cards

IPv4 Cost

A single IPv4 address costs roughly $30–50 due to scarcity

14
New cards

Outbound Traffic Cost

Cloud providers charge around $50–100 per TB of outbound data

15
New cards

HTTPS Certificate Cost

HTTPS certificates are free using Let’s Encrypt

16
New cards

Instance

A rented virtual machine in the cloud

17
New cards

Instance Type

A preset hardware configuration defining CPU

18
New cards

AMI

An Amazon Machine Image used to launch identical server instances

19
New cards

Burstable CPUs

CPUs that earn credits when idle and use credits for bursts

20
New cards

RPS

The number of HTTP requests per second a server can reliably handle

21
New cards

t3.micro RPS

A small burstable instance that handles around 20 RPS

22
New cards

c5.large RPS

A compute-optimized instance that handles around 100 RPS

23
New cards

Capacity Utilization

The ratio of current RPS to maximum RPS

24
New cards

Queuing Delay

Latency added when requests must wait in a server queue

25
New cards

Amplification Factor

ρ/(1−ρ)

The amplification factor shows how queuing delays grow latency at an exponential rate

26
New cards

Amplification Behavior

Low when utilization is low but approaches infinity near 100%

27
New cards

Safe Utilization Range

Systems should keep utilization around 50–66% to avoid collapse

28
New cards

Auto-Scaling

Automatically adds or removes instances based on metrics like CPU usage

29
New cards

Load Balancer

Distributes incoming traffic across multiple servers

30
New cards

Congestion Collapse

When overloaded servers waste work and total throughput drops

31
New cards

addEventListener Syntax

element.addEventListener("event", function)

32
New cards
Inline Handler Syntax
element.onclick = function(e) { … }
33
New cards
Prevent Default Syntax
e.preventDefault()
34
New cards
Submit Listener Syntax
form.addEventListener("submit"
35
New cards
Input Listener Syntax
input.addEventListener("input"
36
New cards
Click Listener Syntax
element.addEventListener("click"
37
New cards
Mouseover Listener Syntax
element.addEventListener("mouseover"
38
New cards
Query Selector Syntax
document.querySelector("selector")
39
New cards
Query Selector All Syntax
document.querySelectorAll("selector")
40
New cards
Scoped querySelector Syntax
parent.querySelector(".child")
41
New cards
Create Element Syntax
document.createElement("tagname")
42
New cards
Append Syntax
element.append(childOrString)
43
New cards
Prepend Syntax
element.prepend(childOrString)
44
New cards
Before Syntax
element.before(nodeOrString)
45
New cards
After Syntax
element.after(nodeOrString)
46
New cards
Remove Syntax
element.remove()
47
New cards
ReplaceWith Syntax
element.replaceWith(otherNode)
48
New cards
Accessing textContent
element.textContent
49
New cards
Setting textContent
element.textContent = "text"
50
New cards
Setting innerHTML
element.innerHTML = "bold"
51
New cards
Reading an Input Value
element.value
52
New cards
Setting an Input Value
element.value = "new value"
53
New cards
Checking a Checkbox
checkbox.checked
54
New cards
Setting checked State
checkbox.checked = true
55
New cards
Adding a Class
element.classList.add("active")
56
New cards
Removing a Class
element.classList.remove("active")
57
New cards
Toggling a Class
element.classList.toggle("active")
58
New cards
Accessing dataset Value
element.dataset.key
59
New cards
Setting dataset Value
element.dataset.key = "value"
60
New cards
Fetch GET Syntax
fetch("/url")
61
New cards
Fetch POST Syntax
fetch("/url"
62
New cards
Fetch JSON POST Syntax
fetch("/url"
63
New cards
Fetch then Syntax
fetch(url).then(response => { … })
64
New cards
Fetch catch Syntax
fetch(url).catch(error => { … })
65
New cards
Checking Response OK
if (response.ok) { … }
66
New cards
Parsing JSON Syntax
response.json().then(data => { … })
67
New cards
Async Function Syntax
async function name() { … }
68
New cards
Await Syntax
const data = await fetch(url)
69
New cards
Await JSON Syntax
const json = await response.json()
70
New cards
Try/Catch Async Syntax
try { … } catch(e) { … }
71
New cards
Creating FormData
const fd = new FormData(form)
72
New cards
Sending FormData
fetch("/url"
73
New cards
Event Target Access
e.target
74
New cards
Current Target Access
e.currentTarget
75
New cards
Stopping Propagation Syntax
e.stopPropagation()
76
New cards
Delegated Listener Syntax
parent.addEventListener("click"
77
New cards
Disable Button Syntax
button.disabled = true
78
New cards
Re-enable Button Syntax
button.disabled = false
79
New cards
Looping NodeList Syntax
document.querySelectorAll("li").forEach(li => { … })
80
New cards
Fetch Basic GET Syntax
fetch("/endpoint")
81
New cards
Fetch GET With then
fetch("/endpoint").then(r => { … })
82
New cards
Fetch GET Full Chain
fetch("/url").then(r => r.json()).then(data => { … })
83
New cards
Fetch Error Chain
fetch("/url").catch(err => { … })
84
New cards
Fetch POST Basic
fetch("/url"
85
New cards
Fetch POST With Body
fetch("/url"
86
New cards
Fetch JSON POST
fetch("/url"
87
New cards
Fetch Check OK Syntax
if (response.ok) { … } else { … }
88
New cards
Fetch Response Status Access
response.status
89
New cards
Fetch JSON Parse Syntax
const data = await response.json()
90
New cards
Fetch With await
const response = await fetch("/url")
91
New cards
Await Then JSON
const json = await response.json()
92
New cards
Try/Catch With await
try { const r = await fetch(url)
93
New cards
} catch(e) { … }
94
New cards
Network Error Detection
catch(e => { … }) handles unreachable servers
95
New cards
HTTP Error Detection
response.ok === false detects HTTP errors
96
New cards
Creating Headers Object
const h = { "Content-Type":"application/json" }
97
New cards
Fetch With Headers Option
fetch(url
98
New cards
Sending FormData
fetch(url
99
New cards
Appending Query Params Manually
fetch("/search?q=" + encodeURIComponent(term))
100
New cards
Fetch Abort Syntax
const controller = new AbortController()