Here's another application of the switch statement. This time we are using it to load random external stylesheets. It will randomly generate a random number from 1 to 3 and load either stylesheet1.css, stylesheet2.css, or stylesheet3.css. Create your own example of a random loading stylesheet.
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |