// Define a function to be executed after a delay
function delayedAction() {
console.log("Delayed action executed.");
}
// Schedule the function to run after 2 seconds (2000 milliseconds)
setTimeout(delayedAction, 2000);