JSFiddle - React, Tailwind, and code Playground
by Abdul Ahmad
JavaScript
function one(number1) {
console.log('one' + number1);
}
function getSeconds(getDate) {
return (function() {
return getDate().getSeconds();
})();
}
function getDate() {
return new Date();
}
setInterval(one, 1000, getSeconds(getDate));