Conditional Statements
Just like in our daily lives as we make everyday decisions we can model this in code by using conditional statements which checks for specific conditions and performs a task based on the conditions.
JavaScript has following concepts:
if
,else if
,else
statementscomparision operators
logical operators
truthy vs falsy values
ternary operators
switch statement
Last updated