Question:i tried using
userinput.value = ''at the end of function but the input is still not empty. here is the code that i’ve tried
Answer:You can reset the value of the input with
input.value = ""
If you have better answer, please add a comment about this, thank you!