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

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

Practise the cards

9 cards from this deck

Show

Purpose of JS operators

Data manipulation and decision-making

Categories of JS operators

Arithmetic, assignment, comparison, logical

JS arithmetic operators

+, -, *, /, %

JS comparison operators

==, ===, !=, <, >

JS logical operators

&&, ||, !

What === checks

Both value and type

Common mistake with == and ===

Confusing == (value only) with === (value + type)

Difference: === vs ==

=== checks value + type; == checks only value

How to avoid operator errors

Use appropriate operator; practise logical & comparison ones

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.