Switch is a statement in javascript that's used to control the data flow in programs. With other words to be able to decide what should happen from different cases or actions. Basically the same way one does with if and else, which most people probably are familiar with by now. They work in similar ways..
Tag Archives: Expressions
What if and else is The statements if and else in javascript means exactly what they sound like, if something is true do this, or else do something else. Both these statements are used very often in the language in order to control programs data flow. Often when coding you want to be able to..
Expressions In javascript there's something one should know about before learning about booleans. That's expressions which is sort of a collection name for all types of code that results in a value. For example the statement x = 5; is an expression. What happens when the variable x is assigned the value is that first..