VirtualMV/JavaScript/Starting/Controlling flow

Overview
''A programmer is asked by their partner to "go to the dairy and get a loaf of bread. If they have eggs, get a dozen." The programmer come home with 12 loaves of bread.''

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 :.