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.

9th Dec 2020, 12:55 PM
John List
2 Answers
+ 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 '
9th Dec 2020, 1:01 PM
Charitra
Charitra - avatar
+ 1
Oh, I see now! Thank you very much!
9th Dec 2020, 1:17 PM
John List