Use switch when you have many exact-value comparisons. Don't forget break between cases, or use return inside each case.
switch
break
return
Challenge: Write dayName(n) that returns the day of the week for n=0..6 (0=Sunday) or 'Invalid' for other values.
dayName(n)
'Invalid'