Logging Numbers

Easy
68
2
64.5% Acceptance

Alex, is working on a web application. The application is supposed to fetch some data, process it, and then present the data in a web page at a regular interval of 500 milliseconds.

Alex wrote the following boilerplate code, but when he runs it, the list items do not contain any text content instead of the expected processed data. He is unsure what went wrong and needs help to fix the bug. Can you help him fix the bug?

Once the bug is fixed the data returned should be logged to the console at a 500 milliseconds Interval.