JavaScript (OCR A-Level Computer Science): Flashcards
📚Flashcards
Practise the cards
12 cards from this deck
ShowHide
Practise the cards
12 cards from this deck
JavaScript's primary use
JavaScript's primary use
Adding interactivity to web pages
Processing type enabled by JavaScript
Processing type enabled by JavaScript
Client-side processing
JS feature: updates without page reload
JS feature: updates without page reload
Real-time updates
JavaScript use: checking form inputs
JavaScript use: checking form inputs
Form validation
JavaScript use: visual effects
JavaScript use: visual effects
Animations
What JS can modify on web pages
What JS can modify on web pages
HTML elements
What JS can add or change on pages
What JS can add or change on pages
CSS styles
User actions JS handles (example)
User actions JS handles (example)
Events like clicks
alert() function purpose
alert() function purpose
Displays a pop-up alert
Function to get HTML element by ID
Function to get HTML element by ID
document.getElementById()
Why use semicolons in JavaScript?
Why use semicolons in JavaScript?
Improves readability & reduces errors
JavaScript essential for what type of pages
JavaScript essential for what type of pages
Dynamic web pages
