Tuesday, November 1, 2016
JavaScript Conditionals
Today I learned about JavaScript conditionals. They are used to execute codes that are dependent on a condition. This condition may or may not be satisfied in order to get something done. If/else statements are the perfect example of this. Tf the condition is true then a code will be executed. If the condition is false, another code will be executed. These may have more than one result through the else if option of adding another condition. Switches are basically the same thing with a different format and an unlimited number of conditions. This will be useful in the future for when we put it to work.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment