Conditional Control Flow

Here is where the magic happens, because using data and applying “Logic” to the data “Sherlock Holmes” was able to deduct what was elementary.

MDN

 Conditional (Ternary) Operator

If  –  else if  –  else  –  ||  –  &&

switch(x)

This allow to fall into more that one cases. if you dont want to enter the next case use: “break;” will look for a

 

Operator Precence

PEMDAS = Please Excuse My Dear Aunt Sally     —     MDN

Parenthesis – Exponents – Multiplication & Division (from L to R) – Addition & Subtraction (from L to R).

 

.



Copyright 2017. All rights reserved.

Posted January 23, 2017 by Edmundo in category "JS