JAVASCRIPT CONDITIONAL STATEMENTS

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/6

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 1:59 PM on 9/12/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

7 Terms

1
New cards

Conditional Statements

Are statements that executes actions depending on different conditions.

2
New cards

if statements

to specify a block of code to be executed, if a specified condition is true

3
New cards

else statements

to specify a block of code to be executed, if the same condition is false

4
New cards

else if statement

to specify a new condition to test, if the first condition is false

5
New cards

switch statement

to specify many alternative blocks of code to be executed

6
New cards

break;

this is necessary after a case since it will let the program break out of the switch statement.

7
New cards

default:

this is used to handle all cases that weren’t specified.