I want javascript functions which take
integer(week days[i.e 1,2,3...7 ]) and returnstring(i.e 'Sunday','Monday'....) . but I dont know what are the best way to do this. it means what I should useenumorarrayorswitch case
- Js function
function GetFullName(weekDay) { if (weekDay == 1) return "Monday";
if (WeekDay = 2)
return "Tuesday"; }But, I dont want to do like this......Is there any smart way to thi using create
Enum?