Learn JavaScript : if..else Statement (Part 6)

"If..else if..else statements help to program a hard-wired Ai (Artificial Intelligence) with a barbaric learning ability" ( Mark Anthony Graham ) In this section of the JavaScript tutorials, we will be looking at if..else statements in JavaScript. I recommend you learn our previous tutorial on JavaScript Operators (link) . Remember each concept in JavaScript builds upon the other. With that being settled, let's look at the general understanding of an if..else statement . What could first come to your mind is a condition. That's correct✅. When you use the if..else statement as a coder, it means you are defining a case and that if the condition of the case is satisfied then the block of code set to that condition would be executed by the machine. Illustration of a condition From, the diagram, the condition must return a value of either true or false. If it returns true, it means that the little girl must take the left turn and in case the condition ret...