title: Javascript API call once a day and save variables, untill next call
body: <p>I have a function that makes a request to an API for my website. I want to have the function called once in the morning, and 2 more times throughout the day. Each time the API is called I want to save api data to variables and then update them after each call. The only way I have seemed to be able to do this is save to localStorage. Is there an easier way to do this? This is a problem because I have limited API calls and cant have a call made every single time a user loads up the page.</p>