Learn about JavaScript If Else Statements, Understanding Conditional Statements with Codecademy Code

preview_player
Показать описание
In this walkthrough we take a look at If...Else Statements on Codecademy JavaScript Intro Course. This lesson builds on our previous lesson which taught us about the "if" conditional statement. We learned that we are able to use "if" conditional logic to find out if a statement is true, and if it is true, we can run a block of code. In this lesson we learn that we can use the "else" keyword to run another code block, if the first if condition evaluates to false. Understanding the else conditional logic keyword is vital in understanding programming from now until forever, so please understand it before moving onto the next javascript lesson!
Рекомендации по теме