peak refactoring.
- main method was too complex - now its better, **to read**
This commit is contained in:
@@ -3,7 +3,7 @@ document.addEventListener("DOMContentLoaded", () => {
|
||||
|
||||
function updateDateTime() {
|
||||
const now = new Date();
|
||||
dateElement.textContent = `Current date and time: ${now.toLocaleString()}`;
|
||||
dateElement.textContent = `Current date and time: ${now}`;
|
||||
}
|
||||
|
||||
// Update once on load
|
||||
|
||||
Reference in New Issue
Block a user