Yes, someone actually did this and I found it running on our server
weekend = dayOfWeek > 5
Sunday is 1 0 and Saturday is 7 6. You just made Friday part of the weekend You forgot Sunday
I was off by one, but Sunday is 0 in javascript
Why would you call it weekend and the start the week with half of it?!
Ok another US local units are retarded rant: it’s called weekEND! why do you start your week at sunday and not monday! Sunday is part of the weekEND!
If you’re referring to an “end” of an object, it can refer to the extreme of a side of it. For example, aglets are at either end of a shoelace.
I’m English, not American but I see it as Saturday and Sunday are the two ends of the week. Like how a string has two ends. The weekend is both the start and the finishing end of the week.
So, when someone asks if you are free the next two weekends, you assume they’re talking about the next Saturday (tail weekend) and the next Sunday (front weekend)?