0
Who can help? The problem with the code.
function main() { var dayofWeek = readLine(); var quietRules = ''mowing, hanging out laundry, washing a car, recycling bottles are not allowed'' // введите код сюда if(dayofWeek == Sunday) { console.log("Obey the rules") } } The code gives an error, and in the part that has already been written, I do not understand what the error is.
2 ответов
+ 4
Sunday should be b/w quotes.
'Sunday'
Also, value of quiet str should be b/w quotes, and your quotes is not valid as I'vetried running your code. Try enclosing within '
+ 1
Oh, I see now! Thank you very much!