<table>
<tr id="weekRow">
</tr>
</table>
(() => {
const weekRow = document.getElementById('weekRow');
let date = new Date();
Array.from(Array(7), () => document.createElement('td'))
.forEach(td => {
td.textContent = date.toLocaleString('ru', {
weekday: 'short'
});
date.setDate(date.getDate() + 1);
weekRow.appendChild(td);
});
})();