Operators
-
+ Add two numbers, or concatenate two strings.
-
use parseInt() and parseFloat to make sure you add, not concatenate.
-
- Subtract two numbers
-
* Multiply two numbers
-
/ Divide two numbers
-
% Modulo: the remainder of one number divided by another
-
= = Equality
-
! = Not equal
-
> Greater than
-
>= Greater than or equal to
-
< Less than
-
<= Less than or equal to
Example: Operations
Lab 1
Home
Internet II: Day 3