js console after every 1 second code example
Example 1: settimeout function
setTimeout(function(){
$('#overlay'). modal('hide')
}, 5000);
//#overlay will be the ID of modal which you want to hide or show modal
Example 2: javascript function that console ogs after 3 seconds
// example1.js
setTimeout(
() => {
console.log('Hello after 4 seconds');
},
4 * 1000
);