Created
August 16, 2022 23:57
-
-
Save szaranger/70d77d4d0129b996b68273511a4ed5c3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const data = getData(); | |
setInterval(function() { | |
const node = document.getElementById('id'); | |
if(node) { | |
// Do stuff with node and data. | |
node.innerHTML = JSON.stringify(data)); | |
} | |
}, 1000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment