Selection in JavaScript (OCR A-Level Computer Science): Flashcards
📚Flashcards
Practise the cards
7 cards from this deck
ShowHide
Practise the cards
7 cards from this deck
What are selection structures in JS?
What are selection structures in JS?
Conditionals that make decisions based on conditions
Main selection statements in JS
Main selection statements in JS
if, else, and switch
What does if...else statement do?
What does if...else statement do?
Executes code based on true or false condition
When to use switch statement
When to use switch statement
For multiple conditions
What selection structures control
What selection structures control
Program flow based on conditions
Common mistake with conditions
Common mistake with conditions
Incorrect syntax, improper formatting/closing
Condition type for if...else
Condition type for if...else
True or false (boolean)
