Simple program written in Java script that converts numeric day's representation into day's name. It uses 0-based day's indices starting from Sunday. In order to convert index into day's name program uses switch statement. If the number is outside the scope there is exception (error) thrown.