Kids

Can

JavaScript

Conditional Statements

Conditional Statements are used to make the code perform different actions, for different conditions. It allows to choose different blocks of code depending on the condition. If and Else statements and Switch are Javascript's Conditional Statements. Comparisons operators are often used to to define the conditions.

  • Conditional Statementdescriptionnote
  • If_Elseallows 2 different blocks of code
  • If_Else_Ifallows multiple blocks of code
  • Multiple_Conditionscombines conditions with logical operators
  • Switchallows multiple blocks of code


<-----Back        Next --->

This username already exists.

This username already exists.

Login or register to save your work.

User name field is empty.

Your username needs to be at least 7 characters long.

Your username can not contain any of the following characters: ",', <, > , < and whitespaces.

Please enter a correct email addresss .

This email address is not found in our database .

Your password needs to be at least 7 characters long.

login
username
password
forgot password
email
register
username
password
email