Control flow allows you to direct the flow of code depending on the conditions which are given. Here are the main operators used in comparison evaluations.
4 > 10 // false 'hi' > 'hello' // true, checks if greater alphabetically 4 >= 3 // true
The difference between the first two conditionals can be show by a simple example:
3 == '3' // true 3 === '3' // false, must be of same type 3 != 3 // false
The logical operators AND or OR allow you to group two evaluations together. An AND evaluates to true only if both sides of the expression are true, while an OR evaluates to true if either side is true.
To get the opposite of an evaluation, use the exclamation mark (!). This will turn a false into true and vice versa.
!true; // false ! (3 > 3) // true 4 < 3 && 2 < 5; // true true || false // true
Relieve spasms, tight muscles, trigger points and pressure points with the Body Back Buddy! This trigger point massage is designed to help you self-message any area of your body - especially those that are hard to reach. Keeping your muscles relaxes and out of contraction is importan in helping to reduce pain and prevent muscle injury.$ Check price
Responsive web design helps your site maintain its design integrity on a variety of screen sizes, but how does it affect your typography? With this practical book, graphic designers, web designers, and front-end developers alike will learn the nuts and bolts of how to get the best appearance from type without sacrificing performance on any device.$ Check price