Skip to content

Instantly share code, notes, and snippets.

@calvinmetcalf
Last active May 17, 2021 17:37
'789+456-123*C0./='.split('').map(e=>r.insertAdjacentHTML("beforeend",`<button onclick="a='${e}',a=='C'?s.value='':a=='='?s.value=eval(s.value): s.value+=a">`+e))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment