VirtualMV/JavaScript/Starting/Controlling flow

Controlling the flow - making decisions
Javascript decision functions are very similar to those used in C++

The three comonly used decision functions are:
 * if  {…..}
 * if {……} else {…..}
 * switch

Example (js1_09)
Example :.

Example (js1_10)
Example :.