JavaScript Execution in the Browser + HTML, CSS, and JavaScript Roles

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

1/5

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 8:35 PM on 2/1/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

6 Terms

1
New cards

JavaScript executes inside the browser,

not on the server

2
New cards

JavaScript code executes with

  • Access to the DOM

  • Access to browser APIs

  • Restrictions enforced by the browser security model

3
New cards

Security mindset:

  • The browser is an attacker-controlled environment

  • Any JavaScript logic can be inspected, modified, or bypassed

4
New cards

Ideally, the roles for HTML, CSS, and JavaScript should be

  • HTML: structure and content

  • CSS: presentation and layout

  • JS: behavior and interaction

5
New cards

In reality, JavaScript can:

  • Modify HTML structure

  • Change CSS styles dynamically

  • Override intended UI behavior

6
New cards

Key idea: JavaScript

controls how the page behaves, not just how it looks