Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR R

Else Statement

const isTaskCompleted = false;

if (isTaskCompleted) {
  console.log('Task completed');
} else {
  console.log('Task incomplete');
}
Source by www.codecademy.com #
 
PREVIOUS NEXT
Tagged: #Else #Statement
ADD COMMENT
Topic
Name
7+4 =