Learn JavaScript: Conditionals, Functions, and Scope
Continue with JavaScript foundations with conditionals, functions, and scope.
StartKey Concepts
Review core concepts you need to learn to master this subject
Control Flow
Logical Operator ||
Ternary Operator
else
Statement
Logical Operator &&
switch
Statement
if
Statement
Logical Operator !
Control Flow
Control Flow
Control flow is the order in which statements are executed in a program. The default control flow is for statements to be read and executed in order from left-to-right, top-to-bottom in a program file.
Control structures such as conditionals (if
statements and the like) alter control flow by only executing blocks of code if certain conditions are met. These structures essentially allow a program to make decisions about which code is executed as the program runs.
What you'll create
Portfolio projects that showcase your new skills
How you'll master it
Stress-test your knowledge with quizzes that help commit syntax to memory