Posts by André Baptista • 146 points
2 posts
-
2
votes1
answer65
viewsA: Array changing of order
The problem is caused by the fact that the function . Question() is asynchronous. That is, what is after it runs regardless of what is inside (which runs after the user enters). This is solved by…
-
1
votes3
answers156
viewsA: Return the first working day of the month
The getDay() method of the Date object returns a number between 0 and 6, being 0 Sunday and 6 Saturday. So Voce can test whether it’s Saturday or Sunday. Already know if it’s a holiday or not, just…
javascriptanswered André Baptista 146