const day = promp("What day is it today?");
if (day === Monday){ console.log(`today is ${day}, tomorrow is Tuesday`)
}else if (day === Tuesday) {console.log(`today is ${day}, tomorrow is Wednesday`)}
else if (day === wednesday) {console.log(`today is ${day}, tomorrow is Thursday`)}
else if (day === thursday) {console.log(`today is ${day}, tomorrow is Friday`)}
else if (day === Friday) {console.log(`today is ${day}, tomorrow is Saturday`)}
else if (day === Saturday) {console.log(`today is ${day}, tomorrow is Sunday`)}
else if (day === Sunday) {console.log(`today is ${day}, tomorrow is Monday`)}
else
{console.log ("Incorect day entered, try again.")}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter