JavaScript Tutorials
Lesson 9 - Conditional Loops
Conditional Loop are code which run other code is a condition is true. For example: an if Loop.
if (variable == condition)
{
console.log("yes");
}
Of course, you can add text or numbers as the condition. If the condition is getting an HTML element value, I highly recommend storing it in a variable.
This is one of 3 conditional loops. The other 2 are coming soon.
< Previous-------------------------
Next >