
JavaScript Basics: Learn These Concepts First
HTML All The Things - Web Development, Web Design, Small Business
00:00
The Power of Comparators in Conditional Statements
There's an or and comparator where like, if this statement and this statement are equal, then the if statement is okay. So there's multiple different ways and multiple different combinations. You can use them to kind of limit the amount of code you need to write to do these conditional statements. And again, with more complex programs, you're going to end up using comparators all the time for that type of thing. It'll take the decision making game to a whole new height because you're not just limited to like, Oh, like, If the number is this, if the number is that.
Transcript
Play full episode