Lesson 3: if/else statements for Covid 19

Lesson 3: if/else statements for Covid 19 - student project

if (myTemp <= 98.6) && (myMask == washed) {

    console.log( “I am going to go shopping” );

}

else if (myTemp <= 98.6) && (myMask == unWashed) {

    console.log( “I will stay safe at home and wash my mask.” );

}

else if ((myTemp > 98.6) && (myMask == washed) || (myTemp > 98.6) && (myMask == unWashed)) {

    console.log( “I am going to call my doctor for further instructions.” );

}

else {

   console.log( “I will stay safe at home.”);

}

 

DISCLAIMER: image from public domain.