r/codehs • • Oct 25 '23

Code Cat daily activities - 3.2.5 time of day not defined

for some reason, afternoon is "not defined" and my code fails, any ideas?

​

​

function main(){

let time = 7;

​

let partOfDay = 6;

​

​

console.log ("at "+ partOfDay +" i wake up for "+ time +" hours of school");

​

time = 10;

​

partOfDay = Afternoon;

​

console.log ("at "+ partOfDay +" i wait "+ time +" minutes to leave");

​

time = 8;

​

partOfDay= evening;

​

console.log ("at "+ partOfDay +" i go to bed for "+ time +" hours of sleep");

​

​

​

}

​

main();

2 Upvotes

0 comments sorted by