I want to use a get request to obtain one digit number from an external URL, subtract 1 from the response and post it into a paragraph
<p>. And also I want to use
setInterval() to refresh the status of this element.
Can someone please help me figure this out?
The URL I request the digit from is
This returns 1 digit.