Question: What will be displayed after this code is run? vax dayofweek = Mondaye, var dayofweek = Sunday vax dayofweek = Tuesday var time = g
What will be displayed after this code is run?
vax dayofweek "Mondaye,
var dayofweek "Sunday"
vax dayofweek "Tuesday"
var time
if dayofweek"saturday" I dayofweek"sundey"
weokend;
else if cime
weekdaywarning;
else
cueekday ;
s
function weekend
console. You get to sleep in:
function weekdaywarning
console. Oh no you overslept";
function weekday
console. are ontime";
A "You get to sleep in
B "You are ontime"
COh no you overslept"
D Nothing prints
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
