i want to make this code work:
let wait = 1;
function speedup(){
wait = 0.5
}
// I want it so that if the speed-up button is pressed the code repeats but faster
<html>
<body>
<a onclick="speedup()">speed up</a>
<p id="p">0</p>
</body>
</html>
Can anyone help? I need to use it for a game where the user can press a button to speed up a lengthy process for igc.