Skip to content

Instantly share code, notes, and snippets.

@StoneCypher
Created January 3, 2018 22:34
Show Gist options
  • Save StoneCypher/2cca660ef8d29af1c93e30f9f051a539 to your computer and use it in GitHub Desktop.
Save StoneCypher/2cca660ef8d29af1c93e30f9f051a539 to your computer and use it in GitHub Desktop.
learn the debugger francisco
<!doctype html><html><head><script type="text/javascript">
const Num1 = 500;
const Num2 = 0500; // this is the bug, but let's say that you don't know about octal
const finalNum = Num1 + Num2;
window.onload = () =>
document.body.innerHTML = `Should print 1000: <tt>${finalNum}</tt>`;
</script><style type="text/css">
tt { background-color: #eee; padding: 0.2em 0.4em; }
</style></head><body></body></html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment