Chapter Table of Contents

Ch. 4 Operators

Section Table of Contents

Quick Summary

Before we move on here's a brief review of all the operators we learned so far:

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/261f2bf0-ebcf-46e4-9483-3473f3ef24e8/Untitled.png

Style Guide

When using binary operators, you should leave at least 1 space between the operands (the things being operated on) and the operator. When using a unary operator, you should not leave any space. Remember, you should follow style conventions to help code be readable to humans.

Good style:

a += 1;
a = 5 - 1;
a++;

Bad style:

a+=1
a=5 -1;
a   ++;

Lots of Operators!