Reading-Notes

My journal for Code Fellows


Project maintained by RogerMReyes Hosted on GitHub Pages — Theme by mattgraham

Programming with JavaScript Lab 07

Control Flow

JavaScript Function

JavaScript Operators

Arithmetic Operators

+ Addition
- Subtraction
* Multiplication
** Exponentiation (ES2016)
/ Division
% Modulus (Division Remainder)
++ Increment
-- Decrement

Assignment Operators

=      x = y     x = y
+=    x += y x = x + y
-=     x -= y   x = x - y
*=     x *= y     x = x * y
/=     x /= y    x = x / y
%=    x %= y x = x % y
**=     x **= y x = x ** y

Comparison Operators

== equal to
=== equal value and equal type
!= not equal
!== not equal value or not equal type
> greater than
< less than
>= greater than or equal to
<= less than or equal to
? ternary operator

Logical Operators

&& logical and
|| logical or
! logical not

Return to Code 102 Table of Contents