v1
2/20/2020 by hypher 2/20/202000
Setup HTML - click to add setup HTML
disable setup JavaScript
Setup JavaScript
const names = [
    "Jan",
    "Feb",
    "Mar",
    "Apr",
    "May",
    "Jun",
    "Jul",
    "Aug",
    "Sep",
    "Oct",
    "Nov",
    "Dec",
];


function monthNameArray(num) {
    return names[num - 1];
}

function monthNameSwitch(num) {
    switch (num) {
        case 1: return "Jan";
        case 2: return "Feb";
        case 3: return "Mar";
        case 4: return "Apr";
        case 5: return "May";
        case 6: return "Jun";
        case 7: return "Jul";
        case 8: return "Aug";
        case 9: return "Sep";
        case 10: return "Oct";
        case 11: return "Nov";
        case 12: return "Dec";
    }
}
delete caserun single casemove downdrag and drop case


ready



monthNameArray(1 + Math.floor(Math.random() * 12))
delete caserun single casemove updrag and drop case


ready



monthNameSwitch(1 + Math.floor(Math.random() * 12))
Test Case - click to add another test case
Teardown JS - click to add teardown JavaScript
Output (DOM) - click to monitor output (DOM) while test is running
RUN