Selection in JavaScript (OCR A-Level Computer Science): Flashcards

📚Flashcards
Selection in JavaScript
Sign up to keep revising.Create a free account to study more flashcards and track your progress.

Practise the cards

7 cards from this deck

Show

What are selection structures in JS?

Conditionals that make decisions based on conditions

Main selection statements in JS

if, else, and switch

What does if...else statement do?

Executes code based on true or false condition

When to use switch statement

For multiple conditions

What selection structures control

Program flow based on conditions

Common mistake with conditions

Incorrect syntax, improper formatting/closing

Condition type for if...else

True or false (boolean)

Explore OCR A-Level Computer Science Revision Notes by Topics

Explore OCR A-Level Computer Science Model Answers by Topics

Explore OCR A-Level Computer Science Quizzes by Topics

Explore OCR A-Level Computer Science Exam Questions by Topics

Join 100,000+ A-Level students studying Flashcards with us.

Select your subjects, and get access to A+ resources today.