JavaScript Operators

Published on: July 15, 2016

Welcome to the fourth Easy JavaScript Tutorial, Beginner JavaScript Tutorial, part of Easy Programming! In this tutorial, we take a look at the various operators available in JavaScript. If you know basic math, this tutorial should be a breeze. 

I mainly cover basic operators such as add, subtract, increment, decrement, and multiplication. I briefly covered some comparison operators and will cover them in-depth in a future tutorial when we cover items such as the if statement and loops. 

Let's take a brief look at a table showing and explaining the various operators available:

Operator(s) Description
++, -- Increment and Decrement
! Logical Not
*, /, % Multiplication, Division, and Modulus
+, - Add (concatenate) and Subtract
==, !=, ===, !== Checks for Equality
&& And
|| Or
=, =+, -=, *=, /=, %= Assignment operators

 

Be sure to check out the resources section below for the fiddle. You can also fork the fiddle and follow along here: https://jsfiddle.net/easyjs/dya9s3yb/ 

Remember to checkout the Resources section below for associated downloadable content, JSFiddle links, and other resources. Watch the video and follow along!

Resources:



Comments: