Sign In | Subscribe
Start learning today, and be successful in your academic & professional career. Start Today!
Loading video...
This is a quick preview of the lesson. For full access, please Log In or Sign up.
For more information, please see full course syllabus of JavaScript
  • Discussion

  • Study Guides

  • Download Lecture Slides

  • Table of Contents

  • Related Services

Bookmark and Share
Lecture Comments (7)

2 answers

Last reply by: Eric Kogan
Tue May 10, 2016 4:19 PM

Post by Ebssa Tesema on June 30, 2015

On odd even modulus example, how can you assign x and y to firstnumber and secondnumber on the same programme?? doesn't confuse the programe when you always give it assign a new value for x and y? in this example

0 answers

Post by Ebssa Tesema on June 30, 2015

I wasn't able to understand the post-inc concept but now i got it, Thanks.

So first it does the addition before it does the actual incr or decr.

0 answers

Post by Ebssa Tesema on June 30, 2015

After evaluating i++ or ++i, the new value of i will be the same in both cases. The difference between pre- and post-increment is in the result of evaluating the expression itself.

++i increments i and evaluates to the new value of i.

i++ evaluates to the old value of i, and increments i.

0 answers

Post by Maury Hillstrom on September 25, 2012

Hi Leslie,

At which point are you finding syntax errors?

0 answers

Post by leslie stapleton leslie stapleton on September 12, 2012

There seems to be syntax errors in this code!


  • Operators are familiar symbols (such as + - * / < >) that represent math functions, comparisons, boolean logic, and variable assignments
  • JavaScript follows its own set of Arithmetic Rules of Precedence which is different from standard algebra
  • Increment and Decrement operators are often used with Counters


Lecture Slides are screen-captured images of important points in the lecture. Students can download and print out these lecture slide images to do practice problems as well as take notes while watching the lecture.

  • Intro 0:00
  • Types of Operators 0:09
    • Operators Overview
  • Arithmetic Operators 1:14
    • Example: Arithmetic Operators
  • Arithmetic Rules of Precedence 4:38
    • PEMDAS (Algebra)
    • P (MDR) (AS) (JavaScript)
  • Assignment Operators 11:58
    • Example: Assignment Operators
  • Comparison Operators 15:16
    • Example: Comparison Operators
  • Boolean Logical Operators 18:19
    • && Operator
    • || Operator
    • ! Operator
  • Special Conditional Operator 22:25
    • Syntax
    • Example
  • Increment and Decrement Operators 24:03
    • Pre-Increment Operator
    • Pre-Decrement Operator
    • Post-Increment Operator
    • Post-Decrement Operator
  • Example 1: Modulus Operator 27:53
  • Example 2: Assignment Operator 32:14
  • Example 3: Characters and Data Types 37:57
  • Example 4: Characters and Data Types 43:17
  • Example 5: Boolean Logical Operators 44:56
  • Example 6: 'or' Logic 46:43
  • Example 7: Conditional Operators 49:39
  • Example 8: Increment and Decrement Operators 52:18