Switch Statements and Javascript Loops-Journal


 This Exercise shows how switch statements are used for complicated and open choices to where there are set values defined by the user.

    This exercise shows how the switch statements can be used to incorporate set answers or responses


This exercise shows how the default statement makes a big difference in how the undefined value is given a value.

        This is the basic use of the switch statements in which a selected input is applied and returns the appropriate value as a statement or string.

This exercise shows how loop statements can be used to limit and repeat certain conditions through a defined expression of JS code.

This exercise shows how the i is defined by starting from 10 and counting downwards to 1.

 This exercise shows how the i was defined to start from 5 and go towards to 9 by repeating the variable i to reach that number.

 This exercise shows how the i has been defined to count by 5s for every i value given.

 This is the hardest part of the exercises since constructing the code from scratch is difficult due to the errors that it gives and the document.getId element is something that I've memorized either.

I've learned that through the use of these exercises, it can be used at wide range of actions and opportunities given to create exemplary websites with even online games that require such code. These exercises show that code is not only infinite but is never-ending and in order to simplify that, loops and switch statements are needed. As such, these JavaScript statements provide a wide range of flexible code to be incorporated in such a way that it'll gave way to greater use of usability in a website.  

Comments

Popular posts from this blog

LB5-Journal Reflection

OSHA Labor Laws

WBL Reflection journal