JavaScript code problem with invalid output
I need help finding the problem to my JavaScript code. The code outputs 'invalid day' but instead It should be 'open. function workingHours(input) { let hour = Number(input[0]); let day = input[1]; if (day == "Monday" || day == "Tuesday"…