switch new date getday javascript

JavaScript
switch (new Date().getDay()) {
Source

Also in JavaScript: