4 Working with Control Structures (if Statements, Loops, Error Handling) Download JavaScript - The Complete Guide 2020 (Beginner + Advanced) free udemy courses download torrent online direct link — Academind by Maximilian Schwarzmüller
Table Of Contents: Table Of Contents
4- Working with Control Structures (if Statements, Loops, Error Handling)
Module Introduction Introducing “if” Statements & Boolean (Comparison) Operators Using Booleans in Conditions & More on Text Comparisons Using “if” Statements Working with “if”, “else” and “else-if” Beware When Comparing Objects & Arrays for Equality! The Logical AND and OR Operators Understanding Operator Precedence if & Boolean Operators - The Basics Beyond true/ false: “Truthy” and “Falsy” Values Coercion vs Conversion Falsy and Truthy Values Setting Up a Bigger Example Project (The “Monster Killer”) Adding an “Attack” Function Using “if” Statements for Checking the Win-Condition Adding More “if” Statements & A “Strong Attack” Functionality Time for a “Heal Player” Functionality! Controlling the Conditional Bonus Life (Without Boolean Operators!) Adding a “Reset Game” Functionality Validating User Input Utilizing Global Constants as Identifiers in Conditional Code Adding a Conditional Battle Log Introducing the Ternary Operator A Bit of Theory: Statements vs Expressions Logical Operator “Tricks” & Shorthands Logical Operators - A Quick Summary Logical Operators & How They Work Working with the “switch-case” Statement Introducing Loops The “for” Loop The “for-of” Loop The “for-in” Loop The “while” & “do-while” Loops Loops - Basics Time to Practice: Control Structures Controlling Loops with “break” Controlling Iterations with “continue” More Control with Labeled Statements break & continue Error Handling with “try-catch” - An Introduction Throwing Custom Errors Working with “try-catch” to Catch & Handle Errors Error Handling Wrap Up Useful Resources & Links