با برنامه Player FM !
Javascript Video Tutorials 3: Branching and Conditionals
Manage episode 36714300 series 33970
In this segment of the Javascript Tutorial we’ll look at conditionals– namely the “if” statement. The if statement is used for a program to make a decision based on some logical test. For example “if” the player’s score is higher than the high score, than the players score is the new high score. Each if statement is paired with an expression which evaluates to true or false and the if code block as associated else blocks are– or are not– executed. It’s easy!
10 قسمت
Manage episode 36714300 series 33970
In this segment of the Javascript Tutorial we’ll look at conditionals– namely the “if” statement. The if statement is used for a program to make a decision based on some logical test. For example “if” the player’s score is higher than the high score, than the players score is the new high score. Each if statement is paired with an expression which evaluates to true or false and the if code block as associated else blocks are– or are not– executed. It’s easy!
10 قسمت
همه قسمت ها
×به Player FM خوش آمدید!
Player FM در سراسر وب را برای یافتن پادکست های با کیفیت اسکن می کند تا همین الان لذت ببرید. این بهترین برنامه ی پادکست است که در اندروید، آیفون و وب کار می کند. ثبت نام کنید تا اشتراک های شما در بین دستگاه های مختلف همگام سازی شود.