javascript
// Define a function to be executed repeatedly
function delayedAction() {
    console.log("Delayed action executed.");                        
}

// Schedule the function to run every 2 seconds
setInterval(delayedAction, 2000);