I have persistent checkboxes which represent the days of the week. I was able to store these values in `localStorage` in an array so that they stay after refresh. 

What I want to know is how can I output "Weekday" or "Weekend" based on the selection of the days? For example a user selects "Monday" and "Wednesday" and the ouput is "Weekday"

I've tested it out using cases but was unsuccessful with applying that with the values from `localStorage`. Is there something wrong with how I've stored my values in the array?

[Here is my codepen](https://codepen.io/anon/pen/MVwbRM?editors=1010).

My function for storing and keeping the values checked:

```
function updateStorage() {
    $checkboxes.each(function() {
        formValues[this.id] = this.checked;
    });

    localStorage.setItem("formValues", JSON.stringify(formValues));
}

$checkboxes.on("change", function() {
    updateStorage();
});

// On page load
$.each(formValues, function(key, value) {
    $("#" + key).prop('checked', value);
});

```