Hello 

This is the day 17 of #30 days of javascrip coding, at this day I studied Switch Statement and i learned that
1- Very simply, I can use the Switch Statement. I can use it to make Control Flow like If && Else If.
2-The difference between them is that the If Condition is closer to using it than the Boolean Values, meaning the result of the code is waiting for True to fulfill the condition or False to fulfill another condition.
3- However, it is preferable to use the Switch Statement if you have a lot of cases or very many cases, such as if you use Control Flow in which the days of the entire month are in, the name of each day, and so on.
That's what I learned today and this is the codes i have typed

Comments

Popular posts from this blog