Order of operations in switch statements - JavaScript - The
-
By A Mystery Man Writer
-
-
5(192)
Product Description
Hi!! Working through Basic JavaScript now, and I’m finding myself needing to look at the hints and even the solution for a few of the modules. Just wondering if someone could let me know how the code is read when calling the function in the switch statement below. Does it go from case 2 → case 3 → case 4 and so on until count++ which it then calculates the increment? Or does it go from case 1 → count++ and then back to case 2 and so on so forth. The switch statement above is from the coun