Review and Discussion on W3 School
W3 schools describes that a switch statement as a statement that evaluates the actual value of variables and finds its comparison with other scenarios and cases and once a case that matches with the value compared is found then the specific case which is needed is executed through the block statement that is supposed to be met. Different cases in a switch statement have different names and numbers and are called identifiers. The different cases are compared to the value given, and if the value given has no match, then the default statement will be executed, whereas if a value matches with the statement, then the marching code will be executed.
On the other hand, if/else statements inform the program to execute a certain block of code in order to find the value provided, the condition met is true. The if/else statements are combined with conditional expressions. The if/else statements are important because they aid us in checking on different conditions that lead to better decision making. Basically, the if statement evaluates a condition and takes a condition; However, if the condition is proved to be false, then the else statement will come in to bring out an alternative execution. The if/else statement will execute two different codes depending on if the conditions given are true or false.
CSS margin features are used to clearly define the space around each element. The margin is used to clear the area around an element and make it distinctive. The margin cannot be colored, but when an element its set, then the background color can be set. Each box has four parts that are the edges: the content edge, padding edge, margin edge, and border edge, which bound real content such as the images, text, or video. The selector is part of the cascading style sheet, which defines the element. The width and height property is used in styling the size of the content, such as the input fields.
References
https://www.w3schools.com/js/js_switch.asp(Linkstoanexternalsite.)
https://www.w3schools.com/css/default.asp(Linkstoanexternalsite.)