Who can help? The problem with the code. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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