Is it possible to automatically display the day of the week on a button?
See the markup below, I need to make "Monday" show whatever day of the week it is.
<button class="button">Conquer Monday</button>
>Solution :
You could use Date::toLocaleDateString to display the current week day:
document.querySelector('.button').textContent = 'Conquer ' + new Date().toLocaleDateString('en-us', {weekday:'long'});
<button class="button"></button>