0
My code outputs every day besides sunday. Why?
function main() { var dayofWeek = readLine(); var quietRules = 'mowing, hanging out laundry, washing a car, recycling bottles are not allowed' if (dayofWeek == quietRules ) { alert('mowing, hanging out laundry, washing a car, recycling bottles are not allowed'); }}
2 odpowiedzi
+ 1
if(dayofWeek == "Sunday"){
console.log(quietRules);}
+ 1
I put that but forgot the quotation marks lol thanks