freeCodeCamp's Introducing Else and Else If Statements, Chaining If Else If Statements (11)

Channel:
Subscribers:
8,020
Published on ● Video Link: https://www.youtube.com/watch?v=1pB1WasE0d8



Duration: 7:19
196 views
2


In this freeCodeCamp tutorial video we are back at it in our Basic Javascript course. In this video we look at the following lessons: Introducing Else Statements, Introducing Else If Statements, Logical Order in If Else Statements, & Chaining If Else Statements We learned in the past videos about If Statements and how we can specify a condition to be true in order for our If Statement to run. But when the If statement is false the code never runs. What if we wanted to add another condition to chec for? We can do this with the Else Statement. If we add the keyword right after our If Statement we can alternatively run another piece of code when the If statment is false. If we want more than to conditions we can chain multiple If Statements using Else If statements. We learned about the importance of putting our conditions in the right order. Not doing so will cause a condition to trigger true before the desired condition. Mastering conditional logic is key on your journey through the world of coding.




Other Videos By We Will Code


2019-07-26freeCodeCamp, Make Screen Reader Navigation Easier with the header Landmark, Make an Accessible Site
2019-07-25freeCodeCamp's Wrap Content in the article Element, Accessibility Challenges
2019-07-24freeCodeCamp's Jump Straight to the Content Using the main Element, Web App Accessibility
2019-07-24freeCodeCamp's Use Headings to Show Hierarchical Relationships of Content, Learn Accessibility
2019-07-24freeCodeCamp's Applied Accessibility, Know When Alt Text Should Be Left Blank, Accessible Web Apps
2019-07-23freeCodeCamp's Add Text Alternative to Images for Visually Impaired Accessibility
2019-07-23freeCodeCamp's Introduction to the Accessibility Challenge
2019-07-19Jordan Peterson on the Founding Fathers views of Utopia
2019-07-18What would Jordan Peterson ask Vladimir Putin about his beliefs?
2019-01-26freeCodeCamps Switch Statements Practice, Javascript Switch Statement Practice (12)
2018-11-16freeCodeCamp's Introducing Else and Else If Statements, Chaining If Else If Statements (11)
2018-11-15freeCodeCamp's Greater Than, Less Than, AND and Or Operators, Basic Javascript (10)
2018-11-14freeCodeCamp's Array Method Practice, Equality and Strict Equality in Javascript (9)
2018-11-13freeCodeCamp's Global Scope and Functions, Understanding Local & Global Variables In JS (8)
2018-11-12freeCodeCamp, More Array Methods, JS Function Declarations & Parameters (7)
2018-11-09freeCodeCamp's Intro To Javascript, Understanding Arrays & Multi-Dimensional Arrays (6)
2018-11-08freeCodeCamp's Using Bracket Notation on Strings, Mad Libs, Intro to Javascript (5)
2018-11-03freeCodeCamp's Javascript Introduction, Escape Sequences, Concatenation. String Length (4)
2018-11-02freeCodeCamp's Intro to Javascript, Compound Assignment & String Literals (3)
2018-10-31freeCodeCamp's Make an Image Responsive,Web Design Principles
2018-10-30freeCodeCamp's Introduction to Javascript, Math Operators in JS (pt.2)



Tags:
javascript conditional logic
conditionals in javascript
learning conditional logic
understand js