JavaScript Operators

Beginner
13 guides
Updated: Nov 2026

About this index

Operators build expressions: compare values, combine booleans, create instances, and compute numbers. Open a guide below for syntax and beginner examples.

Topics

TopicSummary
typeofcheck the type of a value, common return strings, and typeof null quirks.
instanceoftest whether a value appears in a constructor’s prototype chain.
=== and ==strict equality, loose equality with coercion, and when to prefer ===.
?.safely read nested properties and call methods when something may be nullish.
??choose a default only when a value is null or undefined—not for 0 or empty string.
&& || !&&, ||, and ! for combining booleans and short-circuit patterns.
Assignment=, +=, -=, and logical assignments &&= ||= ??=
newcreate an instance from a constructor or class, what new does step by step.
deleteremove an object property, what delete returns, and what you cannot delete.
voidevaluate an expression and always get undefined—common in bookmarklets and IIFEs.
?:condition ? ifTrue : ifFalse as a compact expression form of if/else.
incheck whether a property name exists in an object (including inherited).
+ - * / % **add, subtract, multiply, divide, remainder, and exponentiation with beginner examples.
Comparison< > <= >= ordering.
Bitwise& | ^ ~ and shifts.
++ --prefix and postfix update.
Template literalsbackticks and ${} interpolation.
Property accessorsdot and bracket reads/writes.
yieldpause generators; yield*.
superparent constructor and methods.
Logical assignment&&= ||= ??=.
new.targetdetect construct calls.

Frequently Asked Questions

Start with typeof, ===, then ?. and ??.
No. Operators form expressions that produce values; statements use those values.

CODETOFUN NEWS

Stay Ahead in Tech

Get the latest IT news, programming updates, and technology trends directly on your phone.

Your daily dose of tech, straight to your feed.

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

6 people found this page helpful