<button id="set-alarm">Set alarm</button>
<div id="output"></div>How to implement a promise-based API / notebook
How to implement a promise-based API
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.