var dbQuery = function() : void {
setTimeout(() => {
console.log('Query results');
}, 3000);
}
function loadPage(q : () => void) {
console.log("Header");
q();
console.log("Sidebar");
console.log("Footer");
}
loadPage(dbQuery);
To embed this project on your website, copy the following code and paste it into your website's HTML: