So i want to execute a function by click on a btn <a></a>.
But I want to authorize the execution of the function only X seconds after having executed it the first time.
That my code :
<a onclick="skipCard('left')"></a>
function skipCard(direction=['left', 'right']) {
if(direction == 'left') {
console.log('go left')
} else if (direction == 'right') {
console.log('go right')
}
}